LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 05-03-2010, 07:39 AM   #1
ruud
LQ Newbie
 
Registered: Sep 2007
Posts: 17

Rep: Reputation: 0
vieing value of particular variable in sun studio


Hi,
When debugging through sun studio, i want to add watch of a variable which is out of scope od particular file, when i try to add variable to watch it gives error like
"Info" is not defined in the scope `qmsServer`qmsServer.cpp"

How to add varible in watch expression which is out of scope of file???
 
Old 05-03-2010, 07:56 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
While in the debugger, run "help scope" and you'll got both an explanation and various workarounds.
 
  


Reply


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
Opening Sun Studio From Terminal ruud Solaris / OpenSolaris 1 04-29-2010 06:36 AM
Sun Studio - openSUSE mrstarware Linux - Software 2 12-27-2009 07:05 PM
sun studio 11 qerf Linux - Newbie 1 11-22-2005 05:12 AM
Not buying Sun Studio. gcc? cc? bleah Solaris / OpenSolaris 3 02-22-2005 04:28 PM
Sun One Studio opafire Fedora 2 11-08-2003 12:30 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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

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