You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really have a hard time debugging the rust code with vs code. Its very difficult to find info about how to attatch my debugger to rust libraries that is used by node.js. Yarn build appears to make a project.so in the release folder. Is that what I need to debug my rust? I wish there was more information.
The text was updated successfully, but these errors were encountered:
It took me the whole day to figure out how to debug rust in napi-rs. I finally got it to work. Here is the vs code configuration. It requires the CodeLLDB extention.
oh, it runs a task. vs code will ask you to create one.
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"command":"napi build --platform",
"label": "build:debug"
}
]
}
Other scripts of interests are in package.json. I assume they all run as a shell type. "yarn": "yarn build" might also be handy to add to package.json scripts in rare scenarios.
I really have a hard time debugging the rust code with vs code. Its very difficult to find info about how to attatch my debugger to rust libraries that is used by node.js. Yarn build appears to make a project.so in the release folder. Is that what I need to debug my rust? I wish there was more information.
The text was updated successfully, but these errors were encountered: