User Tools

Site Tools


hpl3:community:scripting:visual_studio_code_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
hpl3:community:scripting:visual_studio_code_setup [2017/12/30 20:19]
7hedubz
hpl3:community:scripting:visual_studio_code_setup [2018/03/24 19:36] (current)
timan Added a debugger tutorial
Line 119: Line 119:
  
 {{  :​hpl3:​community:​scripting:​10.png?​direct& ​ }} {{  :​hpl3:​community:​scripting:​10.png?​direct& ​ }}
 +
 +===== Optional: Launch SOMA from VS Code =====
 +
 +Another useful thing you can do with Visual Studio Code is to set Custom Debug Configuration. With that in mind, we can make VS Code launch the SomaDev.bat (or any other custom bat) file through the debugger.
 +
 +Go to the Debug Panel by pressing "​Ctrl+Shift+D"​. On the Debug tab, press on the configuration button and select C/C++ (Windows).
 +
 +Override the existing code with the following:
 +
 +<​code>​
 +{
 +
 +// Use IntelliSense to learn about possible attributes.
 +
 +// Hover to view descriptions of existing attributes.
 +
 +// For more information,​ visit: https://​go.microsoft.com/​fwlink/?​linkid=830387
 +
 +"​version":​ "​0.2.0",​
 +
 +"​configurations":​ [
 +{
 +
 +      "​name":​ "​SOMA",​
 +
 +      "​type":​ "​cppvsdbg",​
 +
 +      "​request":​ "​launch",​
 +
 +      "​program":​ "​${workspaceFolder}/​SomaDevCMD.bat",​
 +
 +      "​args":​ [],
 +
 +      "​stopAtEntry":​ false,
 +
 +      "​cwd":​ "​${workspaceFolder}",​
 +
 +      "​environment":​ [],
 +
 +      "​externalConsole":​ true
 +
 +    }
 +
 +  ]
 +
 +}
 +</​code>​
 +
 +You can add more configurations by pressing on the "Add Configuration"​ Button at the bottom right and selecting again C/C++ Windows (Launch).
 +
 +Now, just select the debugger you want and press on the green arrow to launch it.
  
hpl3/community/scripting/visual_studio_code_setup.txt ยท Last modified: 2018/03/24 19:36 by timan