LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-28-2018, 10:19 AM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
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.
Thanks
 
Old 03-28-2018, 01:05 PM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,869
Blog Entries: 1

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

Original Poster
Rep: Reputation: 43
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
 
  


Reply



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 07:01 PM
Issues running sudo with winbind theace18 Linux - Server 2 11-28-2013 12:19 AM
Running sudo from a panel icon fogpipe Linux - Desktop 2 05-12-2012 10:06 PM
Running sudo with pam.d vwvr9 Linux - Security 2 05-05-2008 10:19 PM
Running pppd with sudo alish Linux - Security 0 10-07-2007 11:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:30 AM.

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