zhujun98 / behavior-and-path-planning

Self-Driving Car Nanodegree
GNU General Public License v3.0
15 stars 5 forks source link

Debug using VS code #2

Open kk2491 opened 5 years ago

kk2491 commented 5 years ago

Hi,

Could you please let me know if this code can be debugged using VS code. If so, kindly let me know the procedure as well.

I tried creating a launch.json file and started debugging. However it fails due to Segmentation Fault Error.

Thank you, KK

zhujun98 commented 5 years ago

Hi,

I assume that you have solved the uWs issue you mentioned yesterday. Concerning this topic, unfortunately I have no experience with VS.

The code is only tested in Ubuntu16.04 and I suspect the seg fault could also come from the simulator.

kk2491 commented 5 years ago

@zhujun98 I was able to solve uWs issue by copying the install_ubuntu.sh from another repository and un-commenting the git checkout line.

Regarding the debug code using VS code: executable path_planning does run when I start debug, however when I start the simulator it gives Segmentation fault. As you said, it might be coming from the simulator. Let me dig deeper and update you if I find any useful information.

Also could you please help me with the paper which is used to develop the Behavioral planning in this repository?

Update : Code works perfectly fine if I do not start debug using VS code.

Thank you, KK