Comments (7)
+1 for this feature : )
from btrace.
[author="j.bachorik", created="Fri, 11 May 2012 18:44:43 +0200"]
Probably could be achieved but it wouldn't work 100%. You would need the class data with debugging symbols in order to match the stack pointer to a local variable name.
Definitely not for 1.2.*
from btrace.
[author="grnch", created="Fri, 14 Mar 2014 14:06:02 +0100"]
Are there still any plans to implement this?
Please consider doing this, it would be an absolutely killer feature.
It would essentially complete the cycle and turn BTrace into a full fledged "programmable read-only debugger" for production instances. It would be indispensable for those weird bugs that you cannot reproduce on test servers, and if you just knew the value of that one local variable on the production server it would give you a clue what the problem is.
It would be fine if this feature only works with classes that have debug symbols, the probe can just fail if the class does not have debug info.
from btrace.
[author="grnch", created="Fri, 14 Mar 2014 14:07:02 +0100"]
Or as a fall back you could maybe provide all local variables in an AnyType[] array, similar to how method parameters are provided? After all, method parameters and local variables sit in the same array on the JVM stack frame.
That way even without the names of local variables you could at least guess which slot in the array corresponds to which local var, with a little experimentation.
But this is less important, even a simpler implementation that just fails when there is no debug info would be great.
from btrace.
I'm looking for this feature, then see this issue. I wish it will come soon.
from btrace.
this's a great feature.hope come soon.
from btrace.
Stale issue message
from btrace.
Related Issues (20)
- Disable BTrace debug logging HOT 4
- Stack map does not match the one at exception handler HOT 7
- Exception in thread "main" java.lang.NullPointerException HOT 2
- Throw NoSuchFieldException when call getInt() method HOT 5
- btrace INFO: Attaching BTrace to PID: 3866 Broken pipe HOT 1
- Does the BTrace agent support java 17? HOT 1
- Unsupported class file major version 29281 HOT 5
- Is adding method printStrings with a ... array possible? HOT 4
- Javaagent args for output directory seems wrong HOT 3
- Btrace doesn't trace methods when trusted is true HOT 1
- Adding XStream to the dependencies error HOT 2
- JAR artifacts are shadowed with the version number
- [BTRACE WARN] Class verification failed:
- Windows batch scripts do not work properly HOT 2
- Build fails with missing artifact HOT 4
- NoClassDefFoundError for NonBlockingIdentityHashMap when running an application with BTrace HOT 4
- Review target compileJava15Java in btrace-runtime/build.gradle
- NoClassDefFoundError for ConcurrentAutoTable and others when running an application with BTrace HOT 1
- VerifyError: Bad type on operand stack HOT 2
- MT-safety of HistoOnEvent example HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btrace.