Can I debug c++ code

I have some bug in my C++ code. I useing MS Visual studio .net to compile it. How I can enable "Step into" that I can see what happening in my c++ object space when I call that native method from Java?

The easiest way to debug this code USED TO BE to open the Dll project in Visual Studio, then go to the project options and make some some settings. The specific settings involved were the invoking program (Make that java.exe.), and the parameters to the program (Make those the parameters that will make jvm.exe execute your java program.).
This is the way I did it using VC 6.0. It probably still works in the new version.

Similar Messages

  • Can we debug the code line per line in AS?

    Hi
    I am wondering if there is a way to debbug the action script code step by step?
    So I can understand what it is doing exactly.
    Is this possible to do?
    Please show me how, if yes?
    If not, is there another way that allows me to debbug my code?
    Thx in advance
    mimi

    click debug/debug movie.  you can add stops to your actionscript be clicking to the left of the actionscript line number.

  • I can't debug javascript code in JDeveloper 11

    Hi all!
    I'm trying to debug a javascript code in JDeveloper 11. I created a simple html page with a simple javascrit. The page and the call to javascript are ok. When I start the debug I receive some messages,please see below. I can see through window task manager that firefox is started, but it doesn't appear and therefore it is impossible to debug, The messages I receive in JDeveloper console are:
    "C:\Arquivos de programas\Mozilla Firefox\firefox.exe" file:/C:/JDeveloper/mywork/js/js/public_html/test.html -oraclejsdebugport=2006
    Waiting for debugger to attach on port 2006...
    Debugger connected to local process.
    Error: emItemsElement has no properties in file: file:///C:/Arquivos%20de%20programas/Mozilla%20Firefox/components/nsExtensionManager.js at line: 2621 and position: 0Debugger unable to connect to local process.

    Hi Roger,
    It was a bug that got fixed recently. Please download the latest version and try. If you are still able to reproduce please let me know the build (Help -->> About).
    Another workaround
    unselect "Stop on Exception" it can be found from.
    Project Properties >> Run/Debug/Profile >> Select JavaScript run configurations >> Edit >> select JavaScript >> unselect "Stop on Exception"
    -Vikram

  • Picking problem.Can anyone help me debug my code?

    Can someone help me debug my code?
    I try to pick a ColorCube,
    but when I pick a ColorCube in my scene,
    I get the following error message:
    Exception occurred during Behavior execution:
    javax.media.j3d.CapabilityNotSetException: GeometryArray: no capability to get v
    ertex count
    at javax.media.j3d.GeometryArray.getVertexCount(GeometryArray.java:581)
    at com.sun.j3d.utils.picking.PickResult.intersect(PickResult.java:654)
    at com.sun.j3d.utils.picking.PickResult.generateIntersections(PickResult
    .java:635)
    at com.sun.j3d.utils.picking.PickResult.numIntersections(PickResult.java
    :422)
    at com.sun.j3d.utils.picking.PickTool.pickGeomAllSortedIntersect(PickToo
    l.java:854)
    at com.sun.j3d.utils.picking.PickTool.pickGeomClosestIntersect(PickTool.
    java:915)
    at com.sun.j3d.utils.picking.PickTool.pickClosest(PickTool.java:566)
    at SimpleBehaviorApp$SimpleBehavior.processStimulus(SimpleBehaviorApp.ja
    va:119)
    at javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:172)
    at javax.media.j3d.J3dThread.run(J3dThread.java:250)
    when i try to run the following code:
    import java.applet.Applet;
    import java.awt.BorderLayout;
    import java.awt.Frame;
    import java.awt.GraphicsConfiguration;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.geometry.ColorCube;
    import com.sun.j3d.utils.picking.*;
    import com.sun.j3d.utils.universe.SimpleUniverse;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import javax.swing.JOptionPane;
    import java.awt.event.*;
    import java.util.Enumeration;
    // SimpleBehaviorApp renders a single ColorCube
    // that rotates when any key is pressed.
    public class SimpleBehaviorApp extends Applet
    BranchGroup objRoot;
    Canvas3D canvas3D;
    public SimpleBehaviorApp()
    setLayout(new BorderLayout());
    GraphicsConfiguration config =
    SimpleUniverse.getPreferredConfiguration();
    canvas3D = new Canvas3D(config);
    add("Center", canvas3D);
    BranchGroup scene = createSceneGraph();
    // SimpleUniverse is a Convenience Utility class
    SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
    simpleU.getViewingPlatform().setNominalViewingTransform();
    simpleU.addBranchGraph(scene);
    } // end of SimpleBehaviorApp (constructor)
    public BranchGroup createSceneGraph()
    // Create the root of the branch graph
    objRoot = new BranchGroup();
    objRoot.setCapability(BranchGroup.ALLOW_PICKABLE_READ);
    objRoot.setCapability(BranchGroup.ALLOW_PICKABLE_WRITE);
    objRoot.setCapability(BranchGroup.ENABLE_PICK_REPORTING);
    objRoot.setCapability(BranchGroup.ALLOW_AUTO_COMPUTE_BOUNDS_READ);
    objRoot.setCapability(BranchGroup.ALLOW_AUTO_COMPUTE_BOUNDS_WRITE);
    ColorCube ca=new ColorCube(0.4);
    ca.setCapability(ColorCube.ALLOW_PICKABLE_READ);
    ca.setCapability(ColorCube.ALLOW_PICKABLE_WRITE);
    ca.setCapability(ColorCube.ALLOW_GEOMETRY_READ);
    ca.setCapability(ColorCube.ALLOW_GEOMETRY_WRITE);
    ca.setCapability(ColorCube.ENABLE_PICK_REPORTING);
    ca.setCapability(ColorCube.ALLOW_BOUNDS_READ);
    ca.setCapability(ColorCube.ALLOW_AUTO_COMPUTE_BOUNDS_READ);
    ca.setPickable(true);
    objRoot.addChild(ca);
    SimpleBehavior myRotationBehavior = new SimpleBehavior(objRoot,canvas3D);
    myRotationBehavior.setSchedulingBounds(new BoundingSphere());
    objRoot.addChild(myRotationBehavior);
    // Let Java 3D perform optimizations on this scene graph.
    objRoot.compile();
    return objRoot;
    } // end of CreateSceneGraph method of SimpleBehaviorApp
    //�������OSimpleBehavior�����@���������������u��
    public class SimpleBehavior extends Behavior
    private TransformGroup targetTG;
    private Transform3D rotation = new Transform3D();
    private WakeupCondition wCond;
    private PickCanvas pickCanvas;
    // create SimpleBehavior
    public SimpleBehavior(BranchGroup targetBG,Canvas3D canvas3D)
    wCond=new WakeupOnAWTEvent(MouseEvent.MOUSE_PRESSED);
    pickCanvas=new PickCanvas(canvas3D,targetBG);
    pickCanvas.setTolerance(5.0f);
    pickCanvas.setMode(PickCanvas.GEOMETRY_INTERSECT_INFO);
    public void initialize()
    // set initial wakeup condition
    this.setSchedulingBounds(new BoundingSphere(new Point3d(),300));
    this.wakeupOn(wCond);
    public void processStimulus(Enumeration criteria)
    PickResult pickResult;
    MouseEvent event=(MouseEvent)((WakeupOnAWTEvent) criteria.nextElement()).getAWTEvent()[0];
    pickCanvas.setShapeLocation(event);
    Point3d eyePos=pickCanvas.getStartPosition();
    if(pickCanvas.pickClosest()!=null)
    pickResult=pickCanvas.pickClosest();
    Node node=pickResult.getObject();
    PickTool.setCapabilities(node,PickTool.INTERSECT_FULL);
    else
    JOptionPane.showMessageDialog(null,"pickCanvas.pickClosest()������");
    this.wakeupOn(wCond);
    } // end of class SimpleBehavior
    public static void main(String[] args)
    Frame frame = new MainFrame(new SimpleBehaviorApp(), 256, 256);
    } // end of main (method of SimpleBehaviorApp)
    } // end of class SimpleBehaviorApp

    Hi Tinyuh,
    ColorCube?? I learnt thru mistakes. YEPThe following code creates a pickable colorcube.. it works for me!
         public BranchGroup addObject(Vector3d vector)
              BranchGroup branch = new BranchGroup();
              branch.setCapability(BranchGroup.ENABLE_PICK_REPORTING);
              branch.setCapability(BranchGroup.ALLOW_DETACH);
              TransformGroup trans = new TransformGroup();
              trans.setBounds(new BoundingSphere());
              Transform3D t3d = new Transform3D();
              t3d.setTranslation(vector);
              trans.setTransform(t3d);
              branch.addChild(trans);
              ColorCube cube = new ColorCube(0.5d);
              cube.setCollidable(true);
              cube.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
              cube.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
                    cube.setCapability(Shape3D.ALLOW_COLLIDABLE_READ);
              cube.setPickable(true);
              trans.addChild(cube);
              return branch;

  • Can we debug the dynamic action code

    Dear Freinds,
                 I want to debug the standard code written for dynamic action for infotype 0002 and to that of infotype 0021. How can i debug is there any standard program for dynamic action please let me know .
    regards
    divya.

    Hi Divya,
    It's possible to debug the dynamic measure. Just go to include MPPERS00 and put a break-point inside subrotines DYN_MEASURE and MEASURE. Then, in PA30, trigger the dynamic action and the system automaticaly will enter in debug mode.
    I'm assuming that you understand ABAP (in order to realize what SAP is doing behind the scenes) and know how to create a break-point in the ABAP editor.
    Good luck,
    Bruno Quental

  • MSI Big Bang Xpower II did not post - Debug LED Code #67

        
    I need HELP...!
    I have a problem my board did not post , did not start and i have the DEBUG LED CODE # 67 displayed.
    There is my build
    MSI Big Bang Xpower II X79 LGA2011
    Intel Core i7 3820 LGA2011 Processor
    Corsair Cooling Hydro Series H100 CPU Cooler System LGA2011
    G.SKILL Ripjaws Z Series memory (F3-12800CL-32GBZL) DDR3 1600 PC3-12800 - CL10-10-10-30 (8192MB X 4) - 32GIG located in DIMM 1-3-5-7
    Gigabyte GTX570 OC Edition video card in slot PCI-E2
    Western Digital Velociraptor 300GB 2.5" SATA 3.0Gb/s 10,000 RPM
    LG BH12LS35 Blu-Ray Writer 12X BD-R 16X
    Ultra LSP-750 Power Supply
    Cooler Master HAF X EATX Tower Case
    When I put the power on, the power supply activated fans and drives spin, all the LEDs on the motherboard light up but nothing appears on the screen.
    No video signal at all and the computer stop and restrart every 15 seconds. When these reset occurs there is no beep on the speaker , nothing at all, no flashing screen either, nothing.
    The DEBUG LED display a sequence of flashing numbers 19 - 60 - 19- 60 - 67 and stop showing still the number # 67 for about ten seconds and then he reset again.
    I carefully followed the instruction manual for the installation, I installed the memory modules in slots 1 3 5 7, i put my video card in slot PCI-E2. all the power wire are connected correctly 1 x 24 pins ATX, 2 x 8 pins ATX, 1 X 6 pins , all the wire from the front panel are correctly connected to the m-connector in JFP1 & 2.
    Did i forget something, I don’t know what the debug led code # 67 exactly mean and what i have to do to fix-it
    Someone has an idea what is wrong or have any suggestion to solve this issue.
     Thank's all for your help.

     
    I followed some advice to remove the memory modules and this is actually caused by the use of memory but you will see I still have a curious bug.
    I referred to the instructions manual to the letter for the choice of DIMM SLOT to put the memory module in single, double, triple and quad channels.
    If I install 1 memory module in the DIMM SLOT  1 to operate in single channel, everything is normal and the motherboard  POST normally and show  the SETUP SCREEN.
    If I install 2 memory modules in  DIMM SLOT  1 & 3 to run in dual channel, everything is normal and the motherboard  POST normally and show  the SETUP SCREEN.
    If I install three memory modules in DIMM SLOT 1 - 3 - 5 to run in triple channel, everything is normal and the motherboard POST normally and show  the SETUP SCREEN.
    As soon as I install four DIMMs modules mémoiredans SLOT 1 - 3 - 5 - 7 to run in quad channel, the motherboard  freezes and does NOT POST and show  code 67 on the debug led and has reset itself every 20 seconds.
    I tried all my RAM modules alternately in both single channel and everything works normally.
    I did the same thing in rotation for both dual and triple channel and everything is still normal with all fourth memory modules individually.
     As soon as I put a fourth memory module it freezes and displays the code 67 or L9 dependent side as you look. 
    So my bug is my motherboard MSI Big Bang Xpower II do  not want  to work in quad channel.
    Do you have any idea where I should look for, is a setting in the BIOS  , I have flashed the bios to the latest version V1.5
    I included the screenshot of the BIOS to see if you can  notice something wrong. 
    Thank you

  • How can I debug a routine created in Deletion of similar requests?

    Hello Experts,
    I need some help from you. I need to delete overlapping requests and the common
    settings you can set are not suitable, so I decided to write my own ABAP routine.
    But how can I debug a routine, which is implemented in the deletion of similar requests?
    Hope you can help me.
    Cheers
    Daniel Weilbacher

    Please go to the routine code..
    In the menu options..u will find an option for breakpoint--set..
    The line where breakpoint is set will get highlighted and u will also see a STOP symbol..
    then come out of routine..and then run the data load..
    this ABAP routine for overlapping request deletion runs before the scheduled data load..
    the run shud stop at the set breakpoint and show the routine code..in debugger mode..
    cheers,
    Vishvesh

  • Can we debug the Html template in Internet service

    Hi ,
      I need to change the  name of a filed in srm portal "confirmation of good and service" for that i had a template but i am not able to find the label in that
    How can i find the label  ?
    can i debug the template
    help me
    thanks
    Channappa Sajjanar

    Hi Pradeep,
    Thanks for reply .Actually i found one solution which is as follow just  guide me is it correct or not?
    I gone to the screenpainter (se51) their i given the
    program name =SAPLBBP_PDH_SEARCH.
    screen number = 3001.
    in this screen only the speeling mistakes are found for the variable's
    Confirmatn Value : BBPS_SEARCH_SUBLIST_PO_WEB-VAL_CF and
    Calculatd : BBPS_SEARCH_SUBLIST_PO_WEB-QUAN_IV.
        So i just changed the spelling mistakes there in IDES SRM and they are reflection when i exceute the t-code BBPCF02 in SE80.
    now just tell me is the way i am going is correct or not ?
    what are the side effetcts of this?
    and is any way i can solve the proble  from the template?
    please give  your valuable sugetions i am very new to SRM.
    Regards
    Channappa Sajjanar

  • Debugging ABAP Code From Within WebDynpro

    Hi experts,
    I would like to check whether i can debug ABAP code from within webdynpro if i m using a remote J2EE server.
    So netweaver development studio is on my machine
    J2ee server is on a remote machine
    R/3 is also on another remote machine
    Thanks.
    Rgds,
    Daniel

    Hi Daniel,
    One thing note here is
    "You have debugging authorization in the ABAP Workbench in the relevant system.
    Since debugging in the ABAP system via load balancing is not supported, you must reconfigure your JCO destinations so that the calls take place on a dedicated ABAP application server. For Web Dynpro, this is done in the Web Dynpro Content Administrator. In the destination maintenance, specify Single Server Connection as the Destination Type ".
    Other than that ideally it works with j2ee and abap on diff systems.
    Regards
    Ayyapparaj

  • LSMW VD51 , Validations in Begin of Transaction; how to Debug the code?

    Hi All,
    I have written code for validations i Begin of Transaction in the field mapping 5th step of LSMW for VD51.
    Now this code not getting triggered at the time of Conversion of Data. How to debug the code. I have put a static break point 'BREAK-POINT' still not getting triggered.
    Any suggestion / solution for this issue.
    Thanks and Regards,
    Narsimha Kulkarni

    Hi Narshimha,
    Make any mapping error during mapping and check the syntax of mapping it will drag you to the lsmw report there you can put your break point. You can check the report name from transaction code as well.
    Remember this mapping block will execute when you execute the step Convert Data in LSMW.
    Regards
    Dhirendra

  • Can we debug the USER EXITs

    Hi,
          This is Krishna. Can we Debug the User exits. If possible, how to debug and what r the user exits can we debug.
      If any one knows, pls help me.
      Thanx in advance.
    Regards,
    Krishna.

    Hi,
    Write one of these statements in ur user exit code.
    break-point
    or
    break <URID>
    Thanks
    mahesh

  • Can we debug the package pa_project_pvt.add_class_categories which is called in Pa_project_pub.create_project?

    We are trying to create a project using the api code pa_project_pub.create_project. But we are unable to create due to some unexpected error status flag when pa_project_pvt.add_class_categories is executed. We  tried by going through the code but it was in vain.
    So couple of questions from our side.
    1) Can we debug the package procedure pa_project_pvt.add_class_categories by any chance?
    2) If yes, then what is the debugging process?
    Any help in this regard would be helpful.
    Thanks in advance.

    Hi,
    you may try to enable debugging via Sysadmin responsibility by setting following profile options, either for a certain user (preferred) or a certain responsibility:
    - "FND: Debug Log Enabled" set it to yes
    - "FND: Debug Log Level" set it to 1 (but only temporarily, as it generates lots of loggings)
    - "FND: Debug Log Module" set it to "pa" or "PA"
    You'll have to log off and login to apps again for the profile options to come into effect.
    Before you start your process, have a look at fnd_log_messages table (write down last value LOG_SEQUENCE,
    so you can identify the loggings for your process easier) by filtering column log_sequence, module and user_id
    (which is the user_id coming from fnd_user table).
    Make sure that you set apps context (fnd_global.apps_initialize) correctly before the logic of your api call starts.
    Regards.

  • Debug plsql code in sqldeveloper

    Hi all,
    I am new to sql developer, can anyone help me how can i debug a plsql code in sqldeveloper for each step ( each line ) and also i want to view the value of the variables used in plsql code after completion of each line execution.
    Thanks,

    http://www.thatjeffsmith.com/archive/2011/12/the-plsql-debugger-strikes-back-episode-v/

  • Can't debug JavaScript written under RequireJS with built-in Debugger

    Hi! I'm new to Firefox and I'm developing a website using this browser.
    The JavaScript code written in our pages conform to the RequireJS standards. When I want to debug the code, I find that the new built-in debugger of Firefox can't enter the functions correctly.
    For example, if I put a break point inside a function that is defined in a "define" function, the debugger only stops at the last line of the "define" function, and shows the information of all the global variables.
    I really like the look and feel of the debugger, but it seems not working correctly.
    See the picture of the first reply.

    You can try out the debugger in the latest Firefox Nightly release to see if it already works better in that version as the devtools are still being developed.
    *http://nightly.mozilla.org/
    *http://www.mozilla.org/en-US/firefox/channel/
    You can install multiple Firefox versions via a custom install in different installation folders and keep the current release version installed to be able to fallback to the release version in cases when the Nightly or Aurora build aren't working properly.
    Do a custom install of each version in a different program folder and use the Profile Manager to create a new profile for this version, so make sure not to start Firefox after the installation has finished.
    * https://support.mozilla.com/kb/Custom+installation+of+Firefox+on+Windows
    * http://releases.mozilla.org/pub/mozilla.org/firefox/releases/
    Create a desktop shortcut with -P "profile" appended to the target to launch each Firefox version with its own profile.<br />
    Note that the Aurora (28.0a2) and Nightly (29.0a1) build are updated daily and can be unstable being alpha releases.
    See these mozillaZine KB articles for information:
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Profile_Manager#Creating_a_new_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile

  • Debugging the code?

    hai
    i want to know where can we dubug the code? and in howmany ways and tel me transaction codes.
    bye
    with regards
    srinu

    Hi,
    Assuming you want to debug a datasource or extractor, goto tcode RSA3 and put in the datasource/extrator name and run it in debug mode. You can then watch the values.
    Execute the same in RSRT and in the execute and debug options - select "Explain SQL" to see the order in which you are executing the query .. also there is an explain SQL available in RSRT that you can use...
    also available are default breakpoints which you can use..
    hope it helps..
    Regards,
    Amith

Maybe you are looking for

  • Can I use two different computers to put music on my iPod touch?

    To be clear, the issue is this: I've been using a PC to transfer songs to my iPod, but that PC it's not working right now so I want to use my other PC to transfer songs while my official PC gets repaired. This new PC it's associated with my apple ID

  • Administrator rights - unable to obtain on new install of leopard

    Hi! I have installed Leopard (10.5) on my new macbook but have been unable to gain administrator rights..... Having contacted Apple, I was advised to use the Install DVD and re-set the password via the Utilities window. Nice idea... but when loading

  • Help with linking bank to paypal

    I try to link a bank account and when i do only this comes up http://gyazo.com/bbca31d31822df0b7b674557e01fd89a wt **bleep** is that ? i dont need that . I want to sign in to my online bank so it can link instantly but it is not letting me and it isn

  • Cannot find menu item:Invalid Id

    Hi there, I am trying to access the menu attached to my form by setting the enabled properties of menu items based on privileges. I use the following set_menu_item_property: SET_MENU_ITEM_PROPERTY('menu.item_name', ENABLED, PROPERTY_FALSE); But I get

  • Blank screen, Intel Mac mini, Samsung P23700 LCD monitor; HELP!?!

    I just got a new 23" Samsung LCD monitor and hooked it up to an Intel Mac mini. Turning on the system results in a blank screen with the monitor simply displaying a dialog box that seems to show that it is trying to figure out if the incoming signal