Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Debugging with Patwel's Object Browser

  1. #1
    Senior Member
    Join Date
    Jan 2001
    Location
    Meridian, ID (and wherever there is work)
    Posts
    2,758

    Debugging with Patwel\'s Object Browser

    Here's a tidbit I discovered, today... Since I didn't notice it documented anywhere else, I thought it would be fair to share the new knowledge.

    First, if you have used Patwel's Tools, you need to start (http://www.patwel.com). They should be a requirement for all E1 Developers!

    Object Browser allows you to run Business Functions and see the results in real-time. Find the Object Source, right-click the Function in the tree and select "Test Function". A new pane opens and you can plug in values, hit the 'test' icon and see the results. It's very useful when you want to see how the inbound values effect the outbound results.

    Until recently, I hadn't seen a way to Debug the function - when running through the Object Browser.... I could be in debug mode, but the break points are never triggered. I figured the issue was similar to trying to debug functions on Standalone when called through an Application (you have to attach the JDE Net Process to the Debugger)....

    Turns out that attaching the "ObjectBrowser.exe" process to your C Debugger, allows you to debug functions that are being tested through Object Browser! SAWEEET! Now we don't have to build a dummy app, just to put a function in Debug.

    To know more, look at:
    Oracle Document: BSFN: Debugging Business Functions Using Visual Studio .NET 2003, 2005, 2008 and 2010 (Doc ID 639903.1)
    - Debugging Business Function called from application running on local web server of a Standalone Client (Demo Client)
    - Instead of jdenet_n.exe, use ObjectBrowser.exe

    Thank you Patwel!

    (db)

    Daniel Bohner
    Independent E1 Developer/Techno-Functional Consultant
    www.JDERESEARCH.COM
    drbohner@JDEResearch.com | 208.495.4JDE
    http://www.linkedin.com/in/drbohner

  2. #2
    Member
    Join Date
    Aug 2004
    Location
    NYC, Lower East Side
    Posts
    532

    Re: Debugging with Patwel\'s Object Browser

    Thanx, good to know!
    Technical Consultant Xe-9.1

  3. #3
    Member craig_welton's Avatar
    Join Date
    Oct 2000
    Location
    Litchfield, CT
    Posts
    946

    Re: Debugging with Patwel\'s Object Browser

    Yep, that was one of the original uses of the tool. Someday I'll create a manual

    One other tip, after finding the object in the Object Search pane, hit the Test button on the toolbar (4th button, thick lightning bolt). That will bring you straight to the function tester. That also works for other objects types, depending on the type the action is different.

    Table or View brings up the data browser
    APP brings up App tester
    UBE brings up UBE launcher

    It saves a few clicks.

    thanks for mentioning,
    Craig
    Craig Welton
    PatWel Group Inc.
    http://www.patwel.com
    Home of the FREE JDE Object Browser, JDETrace and NERDup Tools

    E1 9.0 8.98.4.2 Wintel SQL 2008
    E1 9.2 9.2.1.4 iSeries

  4. #4
    Member
    Join Date
    Oct 2001
    Location
    New Zealand
    Posts
    422
    Hi Craig, and thanks for publishing these tools. I agree with DB, they are essentials!

    Now about that manual :-)

    But I do have one question about the Data Browser, I see that there is a {...,...,...} QBE notation to allow a selection list of values... is there a way to select ranges? {...-...} gives a Set Selection failure.

    Cheers
    JohnO
    Contract JD Edwards Development Consultant.
    EnterpriseOne Xe through 9.2. Windows/Unix/OS400. SQLServer/Oracle/DB2 for i.
    ER, C/C++, BI Publisher, SQL, DSI dcLink

  5. #5
    Member
    Join Date
    Oct 2001
    Location
    New Zealand
    Posts
    422
    Oh, I found the answer... two dots such as {1234..5678} for between 1234 and 5678.

    I really must remember to stop using UTB, but old habits die hard...
    Contract JD Edwards Development Consultant.
    EnterpriseOne Xe through 9.2. Windows/Unix/OS400. SQLServer/Oracle/DB2 for i.
    ER, C/C++, BI Publisher, SQL, DSI dcLink

  6. #6
    Member
    Join Date
    Jan 2010
    Location
    Karnataka
    Posts
    185
    Thank You Patwel!! Undoubtedly, your tool is essential.
    Thanks (db) for sharing that.
    Regards,

    Abhishek Chhajer

  7. #7
    Member craig_welton's Avatar
    Join Date
    Oct 2000
    Location
    Litchfield, CT
    Posts
    946
    Thanks for the support.

    A couple of data browser tips:

    1. Double click column heading to implement sorting, it will cyclue thru A (ascending), D (descending) and blank (not sorted). The left to right order of the columns is the sort order.

    2. When re-arranging the columns (dragging a column), hold down the Shift key to increase the scroll speed.

    3. QBE multiple values {value1,value2,...}

    4. QBE range {value1..value2}

    5. Menu Data->Save Query to save the grid layout and QBE values to a file for re-use.

    Craig
    Craig Welton
    PatWel Group Inc.
    http://www.patwel.com
    Home of the FREE JDE Object Browser, JDETrace and NERDup Tools

    E1 9.0 8.98.4.2 Wintel SQL 2008
    E1 9.2 9.2.1.4 iSeries

  8. #8
    New Member
    Join Date
    Jun 2003
    Posts
    44
    Nice looking tool Crag, I'll have to download it.

  9. #9
    New Member
    Join Date
    Jan 2017
    Location
    Toronto, ON
    Posts
    5
    Hi Craig,

    can you simply layout the steps to use Object Browser to debug a C BSFN

    just simple steps for a beginner developer

    Thanks,
    Ahmad


    Quote Originally Posted by craig_welton View Post
    Yep, that was one of the original uses of the tool. Someday I'll create a manual

    One other tip, after finding the object in the Object Search pane, hit the Test button on the toolbar (4th button, thick lightning bolt). That will bring you straight to the function tester. That also works for other objects types, depending on the type the action is different.

    Table or View brings up the data browser
    APP brings up App tester
    UBE brings up UBE launcher

    It saves a few clicks.

    thanks for mentioning,
    Craig

  10. #10
    Ahmad,

    This is what I have done to get this to work -

    I got it to work in both 8.12 and 9.1, my steps are as follows -

    1. Logged into E1 and through OMW, pulled in my BF into my Default Project and checked it out.
    2. Selected the BF under my Default Project and then selected Design.
    3. This is the step I was probably missing before or maybe you have to do them both.. However, I was originally selected Busbuild Standalone and then changing to Debug and building and the break points were never hit. I figured, this time around I would just select Build Business Function instead. So I did and it was on Debug and built the BF.
    4. I then opened Object Browser, found the BF I wanted to Debug and put into "Test Function" mode.
    5. I then opened VS; I'm using VS 2008 in 8.12 and VS2010 in 9.1, and opened the .C file for my BF.
    6. In VS I then attached to the ObjectBrowser.exe by selecting Debug --> Attach to Process.
    7. I then set my break points in the .C file
    8. Plugged in the values in my BF within the Test Function of Object Browser and hit Execute.
    9. My breakpoints were now being hit and I can successfully debug the BF in 8.12 or 9.1.

    I hope this will help you if you haven't figured it out yet.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
The legal restrictions and terms of use applicable to this site are available here.
Use of this site signifies your agreement to the terms of use.
JDELIST is NOT affiliated with JD Edwards® & Company, Oracle or Peoplesoft. Contents of this site are neither endorsed nor approved by JD Edwards® & Company and, or Oracle.