Wednesday, April 7, 2021

McFly - Mac terminal shell history search (Ctrl+R) replacement

With my bad memory I constantly use Ctrl+R to find previously typed commands in the terminal.
McFly makes this option much more pleasant by providing an intellignet search eninge that is much smarter than the default.
 
Looks like this:
 
Install on Mac:
 
1. 
brew tap cantino/mcfly https://github.com/cantino/mcfly

2.

brew install mcfly

3. Zsh config:

eval "$(mcfly init zsh)”


 
 
 
 
 
 

Friday, April 2, 2021

VSCode debugging Django (python) website and javascript with breakpoints in both

I was looking for a way to make VSCode debugger to stop on breakpoints both in python and javascript while debugging Django app.
Python and templates breakpoints work well with django launch.json settings, but javascript breakpoints are ignored.
 
 
What I found is a workaround (I don’t know if this is just a standard way to do this, but feels like workaround), by using the `compouns` option in the launch.json.
It is basically an ability of VSCode to debug two apps in parallel. For example when you have a server/client app and you want to debug both simultaneously.
 
Anyway, for Django, I used a regular django config, and a chrome web debug for javascript:
 
 
 
 
A new option is then available in the Run and Debug dorpdown menu: "Django/Web"
This way it works great.