Skip to content

Comments

Add stacktrace support#1

Draft
bugale wants to merge 1 commit intomainfrom
bugale/stack_trace
Draft

Add stacktrace support#1
bugale wants to merge 1 commit intomainfrom
bugale/stack_trace

Conversation

@bugale
Copy link
Owner

@bugale bugale commented Jul 10, 2022

No description provided.

@bugale bugale force-pushed the bugale/stack_trace branch 4 times, most recently from 9ce7e42 to 7833908 Compare July 10, 2022 19:11
Copy link
Owner Author

@bugale bugale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lintly has detected code quality issues in this pull request.

@github-actions github-actions bot deleted a comment from bugale Jul 10, 2022
@github-actions github-actions bot deleted a comment from bugale Jul 10, 2022
@github-actions github-actions bot deleted a comment from bugale Jul 10, 2022
@github-actions github-actions bot deleted a comment from bugale Jul 10, 2022
@github-actions github-actions bot deleted a comment from bugale Jul 10, 2022
@github-actions github-actions bot deleted a comment from bugale Jul 10, 2022
@github-actions github-actions bot deleted a comment from bugale Jul 10, 2022
@github-actions github-actions bot deleted a comment from bugale Jul 10, 2022
@github-actions github-actions bot deleted a comment from bugale Jul 10, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lintly has detected code quality issues in this pull request.

@bugale bugale force-pushed the bugale/stack_trace branch from 7833908 to 0c941d6 Compare July 10, 2022 19:13
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lintly has detected code quality issues in this pull request.

@bugale bugale force-pushed the bugale/stack_trace branch from 0c941d6 to 10ff9d1 Compare July 10, 2022 19:20
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lintly has detected code quality issues in this pull request.

@bugale bugale force-pushed the bugale/stack_trace branch 5 times, most recently from a568159 to c03d759 Compare July 11, 2022 13:32
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lintly has detected code quality issues in this pull request.

@bugale bugale force-pushed the bugale/stack_trace branch 5 times, most recently from 5e6843b to 1c2dfd5 Compare July 11, 2022 14:58
@bugale bugale force-pushed the bugale/stack_trace branch 9 times, most recently from 941380d to a9a88de Compare July 15, 2022 15:58
Repository owner deleted a comment from github-actions bot Jul 15, 2022
Repository owner deleted a comment from github-actions bot Jul 15, 2022
Repository owner deleted a comment from github-actions bot Jul 15, 2022
Repository owner deleted a comment from github-actions bot Jul 15, 2022
Repository owner deleted a comment from github-actions bot Jul 15, 2022
Repository owner deleted a comment from github-actions bot Jul 15, 2022
@bugale bugale force-pushed the bugale/stack_trace branch 9 times, most recently from c36830b to 0cdd97e Compare July 17, 2022 13:46
@bugale bugale force-pushed the bugale/stack_trace branch from 0cdd97e to d611a85 Compare July 17, 2022 15:55
@bugale bugale changed the title Add basic infrastructure Add stacktrace support Jul 17, 2022
return { size: offset, name, from(addr) { return new Struct(addr); } };
}

function defer(fn, name) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no-unused-vars: 'defer' is defined but never used. Allowed unused vars must match /^exports$/u. (eslint)

};
}

function array(type, length) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no-unused-vars: 'array' is defined but never used. Allowed unused vars must match /^exports$/u. (eslint)

@bugale bugale requested a review from Copilot April 14, 2025 20:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 14 out of 21 changed files in this pull request and generated 1 comment.

Files not reviewed (7)
  • .vscode/settings.json: Language not supported
  • Install.ps1: Language not supported
  • Manifest/Manifest.1.xml: Language not supported
  • Manifest/config.xml: Language not supported
  • bugalua/package.json: Language not supported
  • setup.cfg: Language not supported
  • tests/requirements.txt: Language not supported
Comments suppressed due to low confidence (2)

tests/test_memory_usage.py:27

  • Parsing the output by splitting on ':' and accessing index 2 is fragile; consider adding validation to ensure the expected format before conversion.
memory_used = int(output.split(':')[2].strip(), 0)

bugalua/bugalua.js:3

  • [nitpick] Redefining 'console' may cause confusion with the global console object; consider using a more descriptive name such as 'debugConsole' for clarity.
const console = { log: (...args) => host.diagnostics.debugLog(...args, '\n') };

qq
''')
logger.debug('Running windbg commands: %s', commands)
proc = subprocess.run([r'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe', '-z', dump, '-c', f'$<{commands_file.name}'],
Copy link

Copilot AI Apr 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The WinDbg executable path is hardcoded; consider making the path configurable to accommodate different environments or future updates.

Suggested change
proc = subprocess.run([r'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe', '-z', dump, '-c', f'$<{commands_file.name}'],
windbg_path = os.getenv('WINDBG_PATH', r'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe')
if not os.path.isfile(windbg_path):
raise FileNotFoundError(f"WinDbg executable not found at {windbg_path}. Please set the WINDBG_PATH environment variable.")
proc = subprocess.run([windbg_path, '-z', dump, '-c', f'$<{commands_file.name}'],

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant