This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 119071 - Impossible to debug a new application
Summary: Impossible to debug a new application
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P1 blocker (vote)
Assignee: _ gordonp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-16 16:08 UTC by Alexander Pepin
Modified: 2009-06-25 10:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2007-10-16 16:08:25 UTC
Steps to reproduce:
- create a new C++ Application
- add a new main C++ file to the sources
- insert the following code in the main C++ file:

#include <stdlib.h>

//
class A{
    int a;
};
// 
class B: public A{
    float b;
};
//
class C{
    int* pI;
    B* pB;
public:
    C(){
        pI = new int(10);
        pB = new B();
    }
};
//
int main(int argc, char** argv) {

    C* pC = new C();

    C* cc[4];

    for(int i=0; i<4; i++){
        cc[i] = new C();
    }
    
    return (EXIT_SUCCESS);
}

- build the project
- do step into project, works fine
- finish debug session
- set a breakpoint at the first executable line in main function ( C* pC = new C(); )
- run debugger
Result: Debugger does not start correctly. Only "Finish" debugger button is available. Debugger does not navigate to
source code. LV shows "There is no current thread to display the variables for".
 See also issue #119061
Comment 1 _ gordonp 2007-10-17 16:44:36 UTC
Fixed
Comment 2 Alexander Pepin 2007-10-18 14:33:23 UTC
Verified in nightly build 20071017
Comment 3 Alexander Pepin 2007-10-18 16:42:56 UTC
see comments above