If you use the RobotCode Visual Studio Code extension with the following in launch.json
you can step into the Python code:
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "RobotCode: Run Current",
"type": "robotcode",
"request": "launch",
"cwd": "${workspaceFolder}",
"target": "${file}"
},
{
"name": "RobotCode: Run All",
"type": "robotcode",
"request": "launch",
"cwd": "${workspaceFolder}",
"target": "."
},
{
"name": "RobotCode: Default",
"type": "robotcode",
"request": "launch",
"purpose": "default",
"presentation": {
"hidden": true
},
"attachPython": false,
"pythonConfiguration": "RobotCode: Python"
},
{
"name": "RobotCode: Python",
"type": "python",
"request": "attach",
"presentation": {
"hidden": true
},
"justMyCode": false
}
]
The key parts are that justMyCode
must be false
and that robotcode.debug.attachPython
is enabled as shown above because this is disabled by default.
See https://github.com/d-biehl/robotcode/issues/113