You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
variablePresentation parameter in launch.json does not work when using debugging via launch file "type": "ros", "request": "launch". It does work when debugging as python script "type": "python", "request": "launch"
Not hiding:
Hidding:
launch.json file:
{
// 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": [
{
// DO Work. variablePresentation unnecessary variables
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true,
"variablePresentation": {
"all": "hide",
"protected": "inline"
}
},
{
// DON'T work. variablePresentation does nothing to hide unnecessary variables
"name": "path_planning.launch",
"type": "ros",
"request": "launch",
"target": "/home/georobot/ros_ws/georobot_ws/src/au_automow_common/automow_planning/launch/path_planning.launch",
"variablePresentation": {
"all": "hide",
"protected": "inline"
}
}
]
}
Repro steps
<how to reproduce the bug. Please attach sample files or github repo if appropriate.>
ooeygui
changed the title
[bug] ros variablePresentation in launch.json isn't hiding special and function variables
[bug][python] ros variablePresentation in launch.json isn't hiding special and function variables
Oct 10, 2022
Thank you for the detailed bug - very much appreciated!
The root of the issue is that the VSCode ROS extension creates a new debug type called "ROS", which shells out to sub-debuggers. In order to pass these through to the underlying debugger, they need to be exposed on the ROS debug object.
Version of the plugin
v0.8.3
Copy the Version information from the
Help | About
menuwhat is the bug
variablePresentation
parameter inlaunch.json
does not work when using debugging via launch file"type": "ros", "request": "launch"
. It does work when debugging as python script"type": "python", "request": "launch"
Not hiding:
Hidding:
launch.json
file:Repro steps
<how to reproduce the bug. Please attach sample files or github repo if appropriate.>
launch.json
for that launch file and add parameter https://github.com/ms-iot/vscode-ros/blob/master/media/documentation/debug-support/create-launch-debug-config.gif:expected behavior
For special and function variables to be hidden when using variablePresentation setup.
additional context
Similar issue on python debugger side although python debugger works correctly microsoft/debugpy#961
The text was updated successfully, but these errors were encountered: