Tag Archives: debug

How to work with core dumps of Go programs

If you want to check what is going on in your service during load (on production or during stress testing process), you can take a core dump of your app and load it into Goland for further debugging.

Then open it your Goland: Navigate to Run | Open Core Dump. In the Executable field, …

Read more

How go code is being compiled to assembler code

https://go.godbolt.org/z/31FyJ3 I was interested in comparing line 15 vs line 17 of the following code:

How to analyze the performance of your go application in production

You should definitely use chi’s middleware for running pprof and stuff in your admin panel. That’s the repo — https://github.com/go-chi/chi That’s the profiler — https://github.com/go-chi/chi/blob/master/middleware/profiler.go CPU profiling After that you can run something like this in shell:

Or just open it in the browser:

If it opens something different then your browser (sublime …

Read more

Инструмент для визуализации зависимостей в go

https://github.com/TrueFurby/go-callvis Вызов:

Отладка сторонних скриптов в Google Chrome

Если у вас есть на сайте какая-нибудь вредная система, которая вставляет произвольные скрипты на сайт, то рано или поздно встаёт проблема с тем, что их нужно отладить. В Google Chrome это можно сделать так: .

Поиск утечек памяти через Google Chrome

На примере Яндекс-почты: http://habrahabr.ru/company/yandex/blog/195198/ Самое интересное:

Отладка Grunt-задания в WebStorm

Вообще-то у меня PhpStorm, но, думаю, все будет работать и в WebStorm. Обновление: для PhpStorm 7 нужно сначала поставить плагин для node.js (Настройки→plugins→Install Jetrains plugin…→NodeJS) В общем-то, это следует из этой статьи — Способы отладки node.js приложения. Запускаем в командной строкеcd <path to Gruntfile> node —debug-brk=64005 $(which grunt) img2base64 # в fish node —debug-brk=64005 (which …

Read more

Способы отладки node.js приложения

Отладка в PhpStorm (в любой IDE от JetBrains) — http://www.jetbrains.com/webstorm/webhelp/running-and-debugging-node-js.html Отладка в браузере (Google Chrome или другой на WebKit) — https://github.com/dannycoates/node-inspector Отладка в Eclipse — https://github.com/joyent/node/wiki/using-eclipse-as-node-applications-debugger

Почему нужно указывать название лямбда-функции в js

Это нужно для более удобного дебага.

Debug javascript в PhpStorm

Почему-то у меня до сих пор здесь нет этого поста, хотя первый раз пользовался года полтора назад. В PhpStorm можно настроить режим отладки javascript, причём и страниц, находящихся на удалённой машине. http://www.jetbrains.com/editors/javascript_editor.jsp?ide=phpstorm#Debugger_for_JavaScript http://wiki.jetbrains.net/intellij/Remote_JavaScript_debugging_with_WebStorm_and_PHPStorm