Skip to content

How to debug with IntelliJ/CLion? #722

Answered by vjpr
vjpr asked this question in Q&A
Aug 30, 2021 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

So I was trying to get it to work with the SWC project. I created a new napi-rs project from template, and in CLion it works perfectly. Repro here: https://github.com/vjpr/issue-napi-rs-intellij

  • New run configuration
  • Custom Build Application
  • Exe: path/to/node
  • Set working dir
  • Pass your JS file as param
  • Place breakpoint in src/lib.rs
  • Click debug for this run config
  • Should work

So I'm thinking its something to do with how SWC is setup or how I am running things.

Replies: 3 comments 2 replies

Comment options

Brooooooklyn
Sep 1, 2021
Maintainer Sponsor

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@daydayhappychao
Comment options

Comment options

You must be logged in to vote
1 reply
@zhusjfaker
Comment options

Answer selected by vjpr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants