Correlating queries issued by applications with their source lines and analyzing applications for problem determination and where used analysis
Abstract
Provided are techniques for invoking with a processor executing on a computer a source code parser to obtain source information that includes a first location of an Application Programming Interface (API) call and parameters of the API call in source code of a client application, where the parameters the API call do not include query text for a query that is to be used to access a database; examining a stack trace to determine a second location of the API call in the stack trace; and deriving the query of the API call and a third location of the query in the source code by identifying the query in the stack trace at the location of the API call in the stack trace.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 30 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, comprising: setting, with a processor executing on a computer, one or more breakpoints in source code of a client application based on locations of Application Programming Interface (API) calls in the source code; while running the client application through a debugger, upon reaching each of the one or more breakpoints, identifying one or more debugger rules associated with a query at a breakpoint; in response to determining that conditions of the one or more debugger rules are satisfied, obtaining a stack trace before the query makes a call to a database; deriving query text of the
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (30)
Non-Patent Literature (5)
- Final Office Action 1, dated Jan. 19, 2012, for U.S. Appl. No. 12/495,669, filed Jun. 30, 2009 by S.A. Brodsky et al. Total 13 pp. [57.179 (FOA1)].
- Goldsmith, S., R. O'Callahan, and A. Aiken, "Relational Queries Over Program Traces", Proceedings of the 20th Annual ACM SIGPLAN Conference on Object-oriented Programming, Systems, Languages, and Applications, 2005 ACM, pp. 385-402.
- IBM Corp., "Developing Applications that Use the PureQuery API", [online], [Retrieved on Jun. 23, 2009]. Retrieved from the Internet at <URL: http://publib.boulder.ibm.com/infocenter/idm/v2r1/topic/com.ibm.datatools.javatool.runtime.doc/topics/cpdqruntop.html>, 4 pp.
- Juillerat, N., "Enforcing Code Security in Database Web Applications Using Libraries and Object Models", Proceedings of the 2007 Symposium on Library-Centric Software Design, 2007 ACM, pp. 31-41.
- Martin, M., B. Livshits, and M.S. Lam, "Finding Application Errors and Security Flaws Using PQL: a Program Query Language", Proceedings of the 20th Annual ACM SIGPLAN Conference on Object-oriented Programming, Systems, Languages, and Applications, 2005 ACM, pp. 365-383.