Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-28-2018, 11:19 AM   #1
Registered: Mar 2006
Posts: 622

Rep: Reputation: 42
running debugger in VSC as sudo

Hi All,
I need to run the debugger in visual studio code as sudo, it connects to a usb sensor. Does anyone know how I can say start the debugger with sudo?
I have tried setting udev rules on the usb but try as I might can't get this to work.
Old 03-28-2018, 02:05 PM   #2
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,641

Rep: Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120
You might want to start the whole Visual Studio as root user. (Don't forget 'xhost +localhost' beforehand.)
Old 03-28-2018, 04:24 PM   #3
Registered: Mar 2006
Posts: 622

Original Poster
Rep: Reputation: 42
Thanks I got undev to work after multiple tutorials. I think it must have change quite a bit over the years so it quite hard working out which version works with your build


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Getting started with Visual Studio Code (VSC) on Linux LXer Syndicated Linux News 0 10-01-2015 08:01 PM
Issues running sudo with winbind theace18 Linux - Server 2 11-28-2013 01:19 AM
Running sudo from a panel icon fogpipe Linux - Desktop 2 05-12-2012 11:06 PM
Running sudo with pam.d vwvr9 Linux - Security 2 05-05-2008 11:19 PM
Running pppd with sudo alish Linux - Security 0 10-07-2007 12:19 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration