Skip to content

Content Tagged "debug"

Page 1 of 1

Content Tagged "debug"

Display a Function's Errors in Oracle

June 30, 2017Categories: Software, Tutorial
TL;DR: Use the power of DBMS_OUTPUT.PUT_LINE , Luke! I've built a function along the lines of: When using the function, I got some 0 results and I wanted to know why. The solution I got was using DBMS_OUTPUT.PUT_LINE : Now, all you have to do is enable DBMS_OUTPUT in your environment and you…

Debug Electron in VS Code

December 2, 2016Category: Software
TL;DR: You need to follow the server (electron) client (VS code debugger) approach. Be aware of OS specifics! So far, my approach towards development/debugging would be to write some code, test it, rewrite, test... all with a bunch of console.log() statements. That's not efficient at all and…

Debug Javascript - Some Methods

November 17, 2016Category: Software
These days I'm trying to tweak a 3rd-party framework and I'm missing stuff sometimes (e.g. injected data). Below are some methods I've found useful when debugging the script. console.log - print all things Object inspection - see your object's content HTH,

Debug Javascript - Object Inspection

November 17, 2016Category: Software
Many times, you have objects where you may or may not know their content. If you're running in the browser, life is easy as you can pause the code and inspect the object. at command line is a bit more annoying. In this case, at least for the first run, you can execute something like: where obj is…

Debug Javascript - console.log

November 17, 2016Category: Software
This is the holy grail of debugging for me. It's old school, simple and effective. It works both in browser and from command line. My code looks like: You can make it fancier with debug levels (in if() statements or with your tiny library). I however tend to add/remove them progressively as I…

Intercept OkHttpClient Response for Debug

March 16, 2016Category: Software
I wanted to log the data retrieved by OkHttpClient for debugging purposes. After digging for a while, the process seems quite straight-forward now. First, we create the OkHttpClient : Then, we add an interceptor: The interceptor code is: The main thing to remember is that one the response has…

Get Access to Files in Genymotion

May 26, 2015Category: Software
Genymotion is a fine emulator. I'm using it as any normal user and once in a while I need to get a file from the VM to analyse (a DB file or a trace usually). Normally, the way I go is via the Device Monitor (which, in turn goes via adb). Granted, this is the universal method (read: works both on…

All tags