Skip to content

Instantly share code, notes, and snippets.

@joelharkes
Created November 21, 2017 13:39
Show Gist options
  • Save joelharkes/cee25b1340e8e9f9dae5d24a8c255959 to your computer and use it in GitHub Desktop.
Save joelharkes/cee25b1340e8e9f9dae5d24a8c255959 to your computer and use it in GitHub Desktop.
Debug IronPython in visual studio code (vscode)
{
"version": "0.2.0",
"configurations": [
{
"name": "IronPython",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "C:\\Program Files (x86)\\IronPython 2.7\\ipy.exe",
"program": "${file}",
"cwd": "${workspaceRoot}",
"env": {},
"envFile": "${workspaceRoot}/.env",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput"
]
},
]
}
@isthatajojomeme
Copy link

isthatajojomeme commented Jun 25, 2019

Much appreciated :) What extra settings do you need to debug. I have copied your settings, but the code doesn't hit a breakpoint. I have a program usually ran via commandline and altered the settings accomodating that, but vs code seems stuck when trying to debug.

@joelharkes
Copy link
Author

@isthatajojomeme sorry no longer working with ipy, I remember i had same sort of issue, dont remember if and how i got this fixed sorry. If you find i fix please post it here :)

@maxsyst
Copy link

maxsyst commented Jun 4, 2023

any way to slove it ? I just can run it ,but when I debugger it ,it will run pass away one moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment