Skip to content

Instantly share code, notes, and snippets.

@mfelsche
Created January 25, 2019 05:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfelsche/ef4dd9e104a8127e820b6e4e20c88b2c to your computer and use it in GitHub Desktop.
Save mfelsche/ef4dd9e104a8127e820b6e4e20c88b2c to your computer and use it in GitHub Desktop.
Setup pony debugging with vscode
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 !!!
```
@mfelsche
Copy link
Author

All credit goes to ponylang slack user somoni. Thank you!

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