Closed rrirower closed 6 months ago
Could you share your launch.json? (feel free to rename sensitive folder names). I tested using a few sample apps and it launches just fine for me on windows 11.
I'm on Windows 10....
{
"type": "brightscript",
"request": "launch",
"name": "BrightScript Debug: Launch",
"enableDebugProtocol": true,
"stopOnEntry": false,
"host": "xxxxxxxxxx",
"password": "xxxxx",
"rootDir": "${workspaceFolder}\\debug",
"logLevel": "trace",
"fileLogging": true,
"injectRdbOnDeviceComponent": true,
//run the BrighterScript build before each launch
"preLaunchTask": "build"
},
Downgrading to 2.45.11 is a workaround. Waiting for an update.
I'm not sure if it's related to downgrading, but, my previous usage of 'const' no longer works. The debugger reports my const values as 'uninitialized'. I'm currently at V0.65.18.
I think I found a resolution to why it crashes during a debug session. Can you install the latest vscode extension (V2 45.13) and give it a try?
I don't have any idea why consts would be acting up. I'm hoping it's just a glitch cause by upgrading/downgrading vscode a few times. So after installing the latest vscode extension, can you try reloading vscode?
Will do. I'll let you know tomorrow.
Upgrading to 2.45.13 has resolved this issue.
I updated my Brightscript VSCode version today to 2.45.12. When I try to debug some code, I get: