Discussions
Categories
- 197.1K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.7K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 555 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.3K SQL Developer
- 296.3K Development
- 17 Developer Projects
- 139 Programming Languages
- 293K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 158 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 466 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
I can not get Solaris Studio 12.3 debugger to work correctly

When I open my project it will show syntax errors but I can not get the program to stop at a BREAK POINT, RECOGNIZE A WATCH OR STEP INTO OR OVER A FUNCTION. i tried attaching from the OS 12.3 GUI but those capabilities stay grayed out. Any ideas would be helpful. I have used the Debugger on earlier of Solaris Studio without problems.
Answers
-
What OS are you running on?
What toolchain are you using?
Let's start with something basic.
You have a project.
Is it compiled?
Can you run it (inside the IDE but without involving the debugger?)
Do you see your programs output in the output window?
Next, let's bring in the debugger.
First, is your code compiled for debugging, with -g?
Choose Window->Debugging->DebuggerConsole. Initially it will be blank.
Now select a project and from the context menu choose Debug.
What activity do you see? (progress bars, activity in the DebuggerConsole ...)
Normally a program should just run to completion as with Run so you should see
it's output in the output window.
Next, select a project and from the context menu choose "Step into".
What do you see in the Debugger console?
-
I got the debugger working I was reproaching it incorrectly. It just stopped attaching to the project. It mentions Binary code but all my code I created as text. I am running Redhat 6.5 and SS 12.3.
Any help would be appreciated.
Thank you - Tommy
-
here is what I get when I follow your instructions - Tommy
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.9' in your .dbxrc
(dbx) debug "/home/tom/SolStudioProjects/CppApplication_6/dist/Debug/OracleSolarisStudio-Linux-x86/cppapplication_6"
Reading cppapplication_6
Reading ld-linux-x86-64.so.2
dbx: fetch at 0xe490 failed -- Input/output error
dbx: warning: could not put in breakpoint
dbx: warning: internal handler (-80) made defunct -- could not enable event BPT
dbx: warning: internal handler (-89) made defunct -- could not enable event BPT -
The symptom looks like CR 19345519 (dbx does not handle AT_BASE properly on some variants of Linux systems). The problem has been fixed in current version of dbx. I am not aware of any workarounds.
-
Is there a way to upgrade SS12.3 DBX so it will work again?
-
Oracle Solaris Studio 12.4 is now available.