How to use IDE to run and debug

131 views
Skip to first unread message

Siwei Li

unread,
Apr 24, 2025, 5:54:06 AM4/24/25
to ns-3-users
Hello,
I have downloaded ns-allinone-3.44 and built with build.py, and it seems different with the procedure in tutorial (skip building with IDEs).
Now how can i use IDE like VSCode to run and debug my code (both c++ and python) without restart downloading ns-3-dev and building.

Gabriel Ferreira

unread,
Apr 24, 2025, 4:55:02 PM4/24/25
to ns-3-users
Build.py is meant for command-line usage.
For IDE usage, follow the tutorial guides.
Configuration, build and debugging with IDEs are the whole reason I spent time porting ns-3 to CMake :D 

Siwei Li

unread,
Apr 24, 2025, 11:22:20 PM4/24/25
to ns-3-users
Thank you for your reply!
So if i want to use IDEs, i have to download ns-3-dev from github by command-line "git clone" and build with Cmake Extension in VScode right?
Another question is, could you provide more detailed guidance or an accurate link for IDE usage.

P Pattabiram

unread,
Apr 25, 2025, 4:45:14 AM4/25/25
to ns-3-...@googlegroups.com
> --
> Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
> ---
> You received this message because you are subscribed to the Google Groups "ns-3-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/ns-3-users/f2e5ca69-4f98-42eb-995e-92bc2b41e521n%40googlegroups.com.
ns3_CheatBook.pdf

Gabriel Ferreira

unread,
Apr 25, 2025, 5:32:27 AM4/25/25
to ns-3-users
Reply all
Reply to author
Forward
0 new messages