Tech Articles


DEPURAR EN POWER BUILDER CONSEJOS Y TRUCOS


  • Insertar un breakpoint.- Ejecute la opción de menú principal: Edit/ Insert BreakPoint
    • Requisito: Debes estar en el editor de código (script) .
  • Inicializar el depurador. Ejecute la opción de menú principal: Run / Debug nombre de su aplicación
    • Ejecute la opción Debug  / Start nombre de su aplicación
  • Ejecutar línea por línea.- F8
  • Detener el depurador.-  Debug/Stop
  • Ver el contenido de una variable.—Seleccione la variable, dar click derecho y escoger la opción quickwatch
    • Requisito: Debe estar ejecutándose la aplicación en modo de depuración

 

Truco: Algunas veces tenemos un error en tiempo de ejecución que nos hace que Powerbuilder se cierre, para localizar en donde ocurre esto la opción Depurar en tiempo de ejecución ayuda mucho.

Para encender esta opción.- Ejecute la opción de menú principal: Tools/ System Options.. y en la pestaña General encienda la opción (palomear)  Just in time Debugging

Ejecute su aplicación y usualmente en donde tiene el error Powerbuilder se detendrá

  • Requisito: Limpie todos los breakpoints para facilitar la tarea

 

  • Quiere saber que fue todo lo que ejecuto powerbuilder hasta este momento.
  • Enciende la opción: Enable PBDebugTracing
  • Indicale a powerbuilder el archivo de salida.- Opción PBDebug Output Path
  • Quiere saber qué sentencias SQL ejecuto hasta el momento.
    • Apóyate en la opción “TRACE” que permite al objeto de transacción generar un log.
      • sqlca.dbms = "Trace manejador de base de datos"
    • Distingue quien ejecuto el SQL : OUTPUT BUFFER (PowerScript) , OUTPUT BUFFER (DataWindow)
Comments (0)
There are no comments posted here yet

Find Articles by Tag

API CI/CD RibbonBar SDK Menu Automated Testing Branch & Merge Syntax Debug TortoiseGit Oracle Text Source Code Database Database Table Schema PowerServer Web Open Source Deployment Database Table RESTClient RichTextEdit Control UI Themes Script Windows OS Charts Database Painter Import JSON 32-bit File Sort IDE .NET DataStore UI HTTPClient Elevate Conference Event REST Bug Encryption Debugger TreeView Model PowerBuilder (Appeon) Mobile Web API Event Handling PowerServer Mobile Database Connection Application PowerBuilder Windows 10 Icons Trial DataWindow Error PDFlib Jenkins PBVM NativePDF SqlExecutor WinAPI Database Table Data Debugging PFC UI Modernization JSON DLL PowerBuilder Compiler C# Expression Encoding DragDrop Performance 64-bit PDF iOS PostgreSQL Web Service Proxy TFS OrcaScript .NET Assembly BLOB Linux OS Source Control Migration Class PBDOM MessageBox OAuth SQL Azure Event Handler ActiveX Window Android Import Messagging Database Object Authorization TLS/SSL Icon InfoMaker SqlModelMapper SnapObjects Visual Studio Service Excel PowerScript (PS) Interface WebBrowser PostgreSQL ODBC driver Variable Export JSON Git Validation XML Array GhostScript .NET Std Framework Stored Procedure Outlook Graph CrypterObject CoderObject DataWindow JSON SnapDevelop Database Profile SQL Server SOAP Resize SVN Repository Authentication Configuration ODBC JSONGenerator Platform DataType Export License OLE Testing Data External Functions COM Filter DevOps Design OAuth 2.0 JSONParser Installation Transaction RibbonBar Builder PBNI