Created
January 25, 2019 05:04
-
-
Save mfelsche/ef4dd9e104a8127e820b6e4e20c88b2c to your computer and use it in GitHub Desktop.
Setup pony debugging with vscode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The basic steps are here | |
``` | |
install https://marketplace.visualstudio.com/items?itemName=npruehs.pony <- for syntax colors | |
install https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb <- for debugging | |
#vscode settings should have : | |
"debug.allowBreakpointsEverywhere": true | |
#(for example ) create an ./examples/.vscode/launch.json file under the pony examples directory with: | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "lldb", | |
"request": "launch", | |
"name": "Launch helloworld", | |
"args": [], | |
"cwd": "${workspaceRoot}", | |
"program": "./helloworld/helloworld", // <-- make sure you compile it with "cd ./helloworld && ponyc --debug . " | |
}, | |
{ | |
"type": "lldb", | |
"request": "launch", | |
"name": "Launch n-body", | |
"args": [], | |
"cwd": "${workspaceRoot}", | |
"program": "./n-body/n-body", // <-- make sure you compile it with "cd ./n-body && ponyc --debug . " | |
}, | |
] | |
} | |
Press f5 and start debugging !!! | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All credit goes to ponylang slack user somoni. Thank you!