Debugging

Seeing what the framework did between a request arriving and a query being issued — which handlers ran, how the query was rewritten, why a value ended up as it did.

Overview

SAP SHIPSby design
Node.js →

@cap-js/console Connects a running CAP application to the CAP console.

@cap-js/data-inspector Inspects database entities and their contents at the CAP service level.

@sap/cds-dk The command line client and development toolkit for CAP projects, with the commands cds build, cds deploy, cds watch and cds add among them.

Java →

com.sap.cds:cds-feature-console A CAP Java plugin that connects a running application to CAP console, which consumes its remote monitoring data; CAP console itself is installed separately and still being developed.

com.sap.cds:cds-feature-dev-dashboard A browser dashboard for a running CAP Java service that shows and manages its messaging, resilience and multitenancy state while developing, open to users with the cds.Developer role.

Not covered: It stops at inspecting data. Seeing which handlers ran, how a query was rewritten and why a value came out as it did still means reading framework source.

SourceCAP plugins — Data Inspectorchecked
THE COMMUNITY ADDS

Community tools reach the questions the core leaves open: sap-cap-debugger attaches a Node debugger to a CAP application already running on Cloud Foundry, and @saptools/service-flow traces one CAP operation through handlers, database access and remote calls without running anything.

Artifacts8

8 of 8 artifacts
ArtifactSignals
Apps1
com.sap.cds:cds-feature-dev-dashboardBrowser dashboard for a running CAP Java service during development
Signals
none
CDS plugins2
@cap-js/consoleConnects a running CAP application to the CAP console
Signals
none
@cap-js/data-inspectorInspects database entities and contents at CAP service level
Signals
none
CLI tools4
@sap/cds-dkCommand line client and development toolkit for CAP
Signals
none
@saptools/cf-request-runnerEndpoint discovery for CAP services deployed to Cloud Foundry
Signals
none
@saptools/service-flowStatic end-to-end tracer of one CAP operation across repositories
Signals
none
sap-cap-debuggerAttaches a debugger to a CAP app running on Cloud Foundry
Signals
none
Packages1
com.sap.cds:cds-feature-consoleConnects a running CAP Java app to CAP console for monitoring
Signals
none

Content3

Group by
Piece, what it offers
Surviving and Thriving with the SAP Cloud Application Programming Model: Local development hurdles
SAP Community, maxstreifeneder, Blog
debug a CAP app with UI5 TypeScript UI component with VS Code
SAP Community, Volker Buzek, BlogRunnable code
Get an introduction to the cds REPL
SAP Developer Center, SAP, TutorialThe reasoningA recipe

Details

Coverage
statecore and community, CAP
assessed
relationshipnarrow by design
also inABAP
For your agent