Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Debugging an application – PB Docs 126 – PowerBuilder Library

Debugging an application – PB Docs 126

Debugging an application

Sometimes an application does not behave the way you think
it will. Perhaps a variable is not being assigned the value you
expect, or a script does not perform as desired. In these situations,
you can examine your application by running it in debug mode.

When you run the application in debug mode, PowerBuilder stops
execution before it executes a line containing a breakpoint (stop).
You can then step through the application and examine its state.

note.png Debugging components and .NET applications

Before you can debug a server component or .NET application,
you must deploy it. For more information about debugging server
components, see Application Techniques. For
information about debugging .NET applications and components, see Deploying
Applications and Components to .NET
.

proc.png To debug an application:

  1. Open the debugger.

  2. Set breakpoints at places in the application where
    you have a problem.

  3. Run the application in debug mode.

  4. When execution is suspended at a breakpoint, look
    at the values of variables, examine the properties of objects in
    memory and the call stack, or change the values of variables.

  5. Step through the code line by line.

  6. As needed, add or modify breakpoints as you run
    the application.

  7. When you uncover a problem, fix your code and
    run it in the debugger again.

note.png Debugging distributed and .NET applications

Before you can debug a PowerBuilder component deployed to
an application server or an application or component deployed to
the .NET Framework, you must deploy it. For more information, see
the chapter on building EAServer components
in Application Techniques and the section on
debugging .NET applications in Deploying Applications
and Components to .NET
.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x