Programozás | C / C++ » Title debugging business functions using Microsoft Visual C++ 7.1

Alapadatok

Év, oldalszám:2007, 4 oldal

Nyelv:angol

Letöltések száma:23

Feltöltve:2012. december 22.

Méret:55 KB

Intézmény:
-

Megjegyzés:

Csatolmány:-

Letöltés PDF-ben:Kérlek jelentkezz be!



Értékelések

Nincs még értékelés. Legyél Te az első!


Tartalmi kivonat

Title: Debugging Business Functions Using Microsoft Visual C++ 7.1 Abstract: Document details how to debug a business function using Visual C++ 7.1 (Included in Visual Studio .NET 2003) This is an attachment to Solution 200974879 Table of Contents 1. 2. 3. 4. Overview Rebuilding Business Functions Debugging the Business Function Called from Application Running Locally Debugging the Business Function Called from Application Running on Local Web Server 5. Common Issues when Debugging a Business function Overview You can use Microsoft Visual C++ 7.1 to debug business functions in EnterpriseOne 811 and beyond, including C business functions, Named Event Rule (NER) business functions (by debugging the NER generated C code), and Table triggers (by debugging the NER generated C code). You can debug business functions attached to interactive applications or batch applications, but the business functions MUST be executed locally. If launching a UBE, this generally means running it on the

local workstation Back to Top Rebuilding Business Functions 1. Before debugging a business function, the business function must be rebuilt using busbuild because it cannot be debugged without a .pdb file, and pdb files are not delivered with a package install. 2. Sign on to EnterpriseOne Development Client, go to Object Management Workbench, find the business function that you want to debug and bring it into a project. Check out the business function or do a Get 3. Select the Design button In the design window select the Design Tools tab. Select the Build Business Function icon In the BusBuild window, make sure that under the build tool bar the debug info has a check mark by it, and the dropdown box has the appropriate build mode, Optimized in this case. If debug info is not checked, let the build finish, check the debug info option, Close BusBuild, and hit build again. If the dropdown box has the wrong build mode, to avoid memory violations, let the build finish, select the

correct mode in the BusBuild mode window, close BusBuild and hit build again. 4. Close out of the PeopleSoft EnterpriseOne software Back to Top Debugging the Business Function Called from Application Running Locally 1. Make sure that no EnterpriseOne software (activeConsole, UTB, BusBuild, etc) is running. The software must be closed to correctly debug using Visual C++ .NET 2. Open Microsoft Visual C++ NET and make sure that all workspaces are closed 3. From the file menu, choose Open Project 4. Make sure to choose all file types or Executable Files (exe) so you can choose the correct executable. 5. Select ACTIVECONSOLEEXE on path e811Systemin32 6. From the File menu choose open to open the c or h files for the business function (e811path codesourceBxxxxxx.c) 7. Set your break points in the code (make sure to set your break points after main processing section). 8. Go to the Debug menu option and click Start 9. Save the solution file 10. If “No Symbolic Information” message

box for activConsoleexe appear click OK and continue. 11. Then the EnterpriseOne login box will appear 12. Sign into the PeopleSoft EnterpriseOne software 13. Launch the application or submit the UBE (locally) as you normally would (Task, Interactive Versions, Batch Versions, OMW etc). When the application or UBE reaches the business function to Debug, it will display the C code in Visual C++ .NET so that you can step through it If you are debugging business function event rules and "C" business functions, you can use the Event Rule Debug Application and Visual C++ debugger together. Follow the steps above until you log into the PeopleSoft EnterpriseOne software. At this point follow the steps for the Event Rule debugger. Program execution stops if "C" code is accessed. You can then use the Visual C++ to continue debugging This is useful if you are trying to locate a problem and you are not sure whether the problem is in a "C" business function of the

application calling the business function. Back to Top Debugging the Business Function called from application running on local web server 1. For Full version, debugging is the same as Debugging the Business Function Called from Application Running Locally steps above. a. Make sure that no EnterpriseOne software (activeConsole, UTB, BusBuild, etc.) is running The software must be closed to correctly debug using Visual C++ .NET b. Open Microsoft Visual C++ NET and make sure that all workspaces are closed. c. From the file menu, choose Open Project d. Make sure to choose all file types or Executable Files (exe) so you can choose the correct executable. e. Select ACTIVECONSOLEEXE on path e811Systemin32 f. From the File menu choose open to open the c or h files for the business function (e811path codesourceBxxxxxx.c) g. Set your break points in the code (make sure to set your break points after main processing section). h. Go to the Debug menu option and click Start i. Save the solution

file j. If "No Symbolic Information" message box for activConsoleexe appear click OK and continue. k. Then the EnterpriseOne login box will appear l. Sign into the PeopleSoft EnterpriseOne software m. Click Tools -> EnterpriseOne Menu in Solution Explorer n. Launch the application from local web server EnterpriseOne Menu, when the application reaches the business function to Debug, it will display the C code in Visual C++ .NET so that you can step through it 2. For Demo version, the business function will run in jdenet nexe kernel thread a. Click Tools -> EnterpriseOne Menu in Solution Explorer b. Go to Window Task Manager, click on Processes tab, right click jdenet n.exe and select Debug c. Verify that it selected Visual C++ NET for debugging and click ok d. “At Attach to Process” dialog box, make sure Native option is checked and click ok e. From the File menu choose open to open the c or h files for the business function (e811path codesourceBxxxxxx.c) f. Set

your break points in the code (make sure to set your break points after main processing section). g. Launch the application from local web server EnterpriseOne Menu, when the application reaches the business function to Debug, it will display the C code in Visual C++ .NET so that you can step through it Back to Top Common Issues When Debugging a Business Function 1. If the business function wont stop at break point, check the following: o Bsfn must run locally, make sure there is no OCM that mapped it to run on server. o Make sure there is no UBEThread=0 in the [UBE] section of the jde.ini as this will make the UBE run in separate process instead of same thread as Visual C++ so UBE calling bsfn will not be caught by Visual C++. 2. If unable to find jdenet netexe in Task Manager, close all and restart EnterpriseOne client. When you end debug in Visual C++ NET after attaching to jdenet n.exe, jdenet nexe will exit 3. If you get dll does not have debug info when you start debug, please

logout of JDE, run busbuild.exe in 811systemin32 and do a build all Back to Top