Skip to content

Conversation

@dedmen
Copy link

@dedmen dedmen commented Sep 26, 2024

Code breakpoints were already supposed to be working for a long time.
They were just not listed as supported, and a Arma update broke code execution inside ADE.
Next ADE update will fix code execution, so we can also enable the condition and logging breakpoints now.

Also next ADE update gets exception filters, so you can select which kinds of script errors you want to break on.

Also enable loading code content from ADE, that was broken in ADE but fixed now.

ADE side
Exception filter: dedmen/ArmaDebugEngine@ee0a7e5
Fixing script execution: dedmen/ArmaDebugEngine@fa000c8


context.subscriptions.push(vscode.debug.registerDebugAdapterDescriptorFactory('sqf', factory));
if ('dispose' in factory) {
context.subscriptions.push(factory);
Copy link
Author

Choose a reason for hiding this comment

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

This just silences a typescript compiler error

let json = JSON.parse(cmd);
json.handle = this.nextHandle();
this.send(json);
resolve();
Copy link
Author

Choose a reason for hiding this comment

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

This just silences a typescript compiler error


private logging: boolean = false;
private verbose: boolean = false;
private getSourceFromADE: boolean = false;
Copy link
Author

Choose a reason for hiding this comment

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

This is now default on. Because I don't see a downside to it, it will anyway only be used if the file cannot be found locally.
Previously it was broken/disabled in ADE, but as of dedmen/ArmaDebugEngine@0495f13 that is fixed

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