RSS Amplifier

dhilst · Sep 2, 2019

Interative debugging

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

I use to code by writting tests and fixing errors. When things get dirty, debug by printing make the whole code/fix flow really slow. In this situations I call for interative debuggers. I don’t really on fancy IDE stuff, usually there are magic lines that you paste in the code to get access to interactive debugging. With python you can do import pdb ; pdb . set_trace () Google for python pdb On…

I use to code by writting tests and fixing errors. When things get dirty, debug by printing make the whole code/fix flow really slow. In this situations I call for interative debuggers. I don’t really on fancy IDE stuff, usually there are magic lines that you paste in the code to get access to interactive debugging.

With python you can do

import pdb; pdb.set_trace()

Google for python pdb

On ruby you can do

binding.pry

Google for ruby pry

On php you can do

\Psy\Shell::debug(get_defined_vars());

Google for php psysh

Cheers

Read on dhilst.github.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.