File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,16 @@ Because some builds requires one or more environment files to be sourced before
155
155
command, you can use the ` ssh.bootstrap ` option to add some extra commands which will be prepended
156
156
to the debugger call (using ` && ` to join both).
157
157
158
+ ### Debugging a process from a different user (especially root/system processes)
159
+
160
+ To debug a program that needs additional privileges you may use one of the two approaches:
161
+
162
+ 1 . start vscode with the necessary rights (so both the program and the started debugger instance will
163
+ have root rights) - ` sudo code ` / ` sudo codium ` or "start as admin".
164
+ Note that this has a lot of security implications and will have the user settings of vscode for this user.
165
+ 3 . preferred: use a small wrapper script that calls ` sudo gdb $* ` / ` runas /profile /user:admin-user `
166
+ (or the debugger of your choice) and configure this extension to use it (for example with ` gdbpath ` )
167
+
158
168
### Extra Debugger Arguments
159
169
160
170
Additional arguments can be supplied to the debugger if needed. These will be added when
You can’t perform that action at this time.
0 commit comments