Debugging client-side code
AssigneeInternational Business Machines Corporation
InventorsCraig Michael Lawton, Michael Stephen Brown, Sachin Pravin Patel
Life of this patent
Estimating the term…
Abstract
A method for debugging client-side code includes a client receiving an application file set from a server in response to the client requesting an application. A singleton is generated on the client by executing a script in the application file set. The singleton monitors a data event generated by an application programming interface. The singleton writes a client data record to a cache memory in response to the application programming interface generating the data event. The client data record records an application event. The singleton flushes the contents of the cached memory in response to a flush event, and transfers the contents to the server for persistent storage.
Claims18
A method for debugging client-side code comprising:
- receiving, by a client, an application file set from a server in response to a request from the client for an application;
- generating a singleton on the client by executing a script in the application file set received from the server;
- monitoring, by the singleton, a data event generated by an application programming interface;
- writing, by the singleton, a client data record to a cache memory in response to the application programming interface generating the data event, the client data record recording an application event of the application on the client;
- and
- flushing, by the singleton, a contents of the cache memory in response to a flush event and transferring the contents to the server for persistent storage thereat, wherein the flushing comprises encoding by the client the contents with a data interchange format, transferring the contents to the server, decoding by the server the contents with the data interchange format, writing the contents to the server memory, and clearing the cache memory.
A non-transitory computer readable medium comprising computer program product for persisting a client-side generated event, the computer program product comprising:
- a computer readable storage medium, which is not a signal, having computer readable program code embodied therewith, the computer readable program code comprising:
- computer readable program code configured to provide an application file set from a server to a client in response to a request from the client for an application;
- computer readable program code configured to generate a singleton on the client by executing a script in the application file set received from the server;
- computer readable program code configured to monitor, by the singleton, a data event generated by an application programming interface;
- computer readable program code configured to write, by the singleton, a client data record to a cache memory in response to the application programming interface generating the data event, the client data record recording an application event of the application on the client;
- and
- computer readable program code configured to flush, by the singleton, a contents of the cache memory in response to a flush event and transfer the contents to the server for persistent storage thereat, wherein the flushing comprises encoding by the client the contents with a data interchange format, transferring the contents to the server, decoding by the server the contents with the data interchange format, writing the contents to a server memory, and clearing the cache memory.
A method for monitoring client-side code comprising:
- receiving, by a client, an application file set from a server in response to a request from the client for an application;
- generating a singleton on the client by executing a script in the application file set received from the server;
- monitoring, by the singleton, a data event generated by an application programming interface;
- and
- writing, by the singleton, a client data record to a cache memory in response to the application programming interface generating the data event, the client data record recording an application event of the application on the client,
- wherein the server is one of a plurality of application servers, the plurality of application servers being in communication with a web server, the contents of the cache memory further transferred from the one of the application servers to the web server, the web server storing the contents in a web server memory, and the web server transferring the contents to the one of the application servers in response to a recall even.
A method for debugging client-side code comprising:
- receiving, by a client, an application file set from a server in response to a request from the client for an application;
- generating a singleton on the client by executing a script in the application file set received from the server;
- monitoring, by the singleton, a data event generated by an application programming interface;
- writing, by the singleton, a client data record to a cache memory in response to the application programming interface generating the data event, the client data record recording an application event of the application on the client;
- flushing, by the singleton, a contents of the cache memory in response to a flush event and transferring the contents to the server for persistent storage thereat;
- and
- recalling, by the client, in response to a recall event, a portion of the contents of the server memory previously transferred to the server, encoding by the server the contents with a data interchange format, transferring the contents to the client, decoding by the client the contents with the data interchange format, writing by the client the contents to the cache memory, and incrementing by the client a data record pointer.
A method for debugging client-side code comprising:
- receiving, by a client, an application file set from a server in response to a request from the client for an application;
- generating a singleton on the client by executing a script in the application file set received from the server;
- monitoring, by the singleton, a data event generated by an application programming interface;
- writing, by the singleton, a client data record to a cache memory in response to the application programming interface generating the data event, the client data record recording an application event of the application on the client;
- and
- flushing, by the singleton, a contents of the cache memory in response to a flush event and transferring the contents to the server for persistent storage thereat,
- wherein the server is one of a plurality of application servers, the plurality of application servers being in communication with a web server, the contents of the cache memory further transferred from the one of the application servers to the web server, the web server storing the contents in a web server memory, and the web server transferring the contents to the one of the application servers in response to a recall event.
Dependencies are inferred from the claim text.