Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

debugging

How to change Eclipse’s “associated source” for debugging?

January 4, 2024 by Tarik

Right click on the Debugger panel, select Edit Source Lookup

Categories eclipse Tags debugging, eclipse Leave a comment

Java UnknownFormatConversionException

January 4, 2024 by Tarik

Use d for int instead of i and ffor double instead of d in the following line str = String.format(“%s-30%i-6$%d-20”, name, age, donation); You can read about formatting syntax here http://docs.oracle.com/javase/6/docs/api/java/util/Formatter.html.

Categories java Tags debugging, java Leave a comment

Why does the Stack Trace shows my development files path?

January 3, 2024 by Tarik

It is because you copied the .pdb files as well as the executables. The CLR will look for them when it generates a stack trace to try to give as much info as possible about the stack frames in the trace. The .pdb stores the source file name and line number. You are supposed to … Read more

Categories c# Tags c#-4.0, c++, debugging, stack-trace, visual-studio-2010 Leave a comment

How to get a complete stack trace of a running java program that is taking 100% cpu?

January 3, 2024 by Tarik

Try with jstack. It’ll give you a full list of what your threads are doing. All it needs is the process pid.

Categories java Tags debugging, java, stack-trace Leave a comment

Debug JavaScript in Visual Studio 2010?

January 3, 2024 by Tarik

Use the JavaScript debugger keyword in IE. function onClickRow(detailUrl) { debugger; } When run your page in IE, a debug window will pop up, then select Visual Studio 11.

Categories javascript Tags debugging, javascript, visual-studio-2010 Leave a comment

How to use the debugger with Ruby 2.0?

January 3, 2024 by Tarik

The debugger gem can be used but it still has issues. Install byebug which was written for Ruby 2.0 debugging. For breakpoints, use the byebug command in your code instead of debugger.

Categories ruby Tags debugging, ruby, ruby-2.0 Leave a comment

How do you debug a Sinatra app like a Rails app?

January 3, 2024 by Tarik

You could try adding a before filter that prints out the parameters before do puts ‘[Params]’ p params end

Categories ruby-on-rails Tags debugging, logging, ruby, ruby-on-rails, sinatra Leave a comment

Android Studio Disconnects From Physical Device

January 2, 2024 by Tarik
Categories android Tags adb, android, android-studio, debugging, google-chrome Leave a comment

android studio open debug mode when app is running

January 2, 2024 by Tarik

In Android Studio (I’m currently using I/O Preview 0.2.10) simply click on the icon in the toolbar that looks like a phone with a bug over it – the hover text says: Attach debugger to Android process. It’s the third icon along: A list will then appear showing your processes that you can debug. Choose … Read more

Categories debugging Tags android-studio, debugging, pid Leave a comment

gdb: No symbol “i” in current context

January 2, 2024 by Tarik

It has probably been optimised out of your compiled code as you only use feature_mask[i] within the loop. Did you specify an optimization level when you called your compiler? If you were using gcc, then just omit any -O options and try again.

Categories c Tags c++, debugging, gdb Leave a comment
Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 … Page120 Next →

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa