Content-Length: 590111 | pFad | http://github.com/autoplot/documentation/wiki/developer.jython.pdb

3A developer.jython.pdb · autoplot/documentation Wiki · GitHub
Skip to content

developer.jython.pdb

Jeremy Faden edited this page Jun 14, 2024 · 3 revisions

Purpose: record notes about using pdb in the Jython environment. Audience: Those interested in experimenting with pdb.

Introduction

line-by-line debugging is a dearly missed feature of IDL and Java programming environments. These environments let you place a breakpoint in the code, and when execution reaches the breakpoint, the application stops and the developer can query the current state of the environment or step through code line-by-line.

Current State

Here's how anyone can experiment with the current state of the debugger. Note it is easy to hang Autoplot if this is not done properly.

  • enable the debugger with:
 AP> from java.lang import System
 AP> System.setProperty("jythonDebugger","true")
  • Presently the script must be modified to use the debugger.
    • import pdb
    • pdb.set_trace() should be called where the Jython interpreter should stop. An odd GUI pops up with Step and Next buttons. Also it shows the state of the state machine that is used to parse PDB output.

Note:

  • You can't debug GUI code, because the GUI thread would be hung and the debugger GUI would be locked up.

See Also

Table Of Contents

URIs that Point to Data Files

Download a CDF and Plot it with Autoplot

Load a CDF directly from a website

URIs that Point to Data Servers

Saving to vap files

Loading vap files

Data Sources

CDF Files

HDF/NetCDF Files

Aggregation

CDAWeb

HAPI Servers

Exporting Data

Export Types

Additional controls

Aggregation

Tools

PNGWalk Tool

Data Mash Up

Events List

Run Batch

Advanced Topics

TimeSeriesBrowse and other Capabilities

Events Lists

Caching

Autoranging

Managing Autoplot's Data Cache

Using Autoplot with Python, IDL, and Matlab

Reading data into Python

Reading data into IDL

Reading data into Matlab

QDataSet Data Model

Clone this wiki locally








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/autoplot/documentation/wiki/developer.jython.pdb

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy