Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8795653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:26:08+00:00 2026-06-13T23:26:08+00:00

I need to debug the interaction of our Java code with a certain native

  • 0

I need to debug the interaction of our Java code with a certain native dll. I have some experience debugging .NET-native interaction in windbg + sosex.

However, there does not seem to exist any windbg extension that would show me the Java call stack.

Also, I could not find any debug build of jdk 6.

I am not that desperate to compile jdk 6 from the source code (even if I knew how).

So, my question is how would you debug or profile the interaction of your Java code with some native DLL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:26:09+00:00Added an answer on June 13, 2026 at 11:26 pm

    I’ve done this using a combination of jdb and windbg. Set bp’s in java with jdb just before and after your native call and set a bp at the start of your native function with windbg. Neither debugger knows about the other nor do they need to. You won’t be able to get a stack trace with both java bytecode frames and native frames but that’s no big deal since you can look at the java stack before and after your native call.

    Note: The jvm (at least the 1.5 version) uses exceptions for normal cases which is a huge pain when running under a native debugger. Luckily EIP is mostly the same for all of them so you can ignore using something like: .if (@eip == <addr>) {gn}

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to debug remote java code with IntelliJ Idea 10.5 (Ultimate Edition) When
I have a java class and I need to debug it (put breakpoints and
I need to debug a certain ViewController I have and I can't seem to
I need debug some old code that uses a Hashtable to store response from
I need to debug some annoying CSS issues on IE7, I have the Internet
I need to debug some binary crash using IDA Pro. What is the command-line
I have a very specific case that I need to debug. I need to
At the moment I'm stuck with the need to debug several functions in our
I have a process that spawns a helper process. Sometimes I need to debug
I have mex code that I call from my matlab scripts. To debug the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.