I use JProfiler 8.1.4 and I have it integrated with IntelliJ IDEA 14.1.3.
I have a JProfiler session for profiling JBoss using the standalone_jprofiler.bat script like this:
Now, when I want to go to the source code for some method, JProfiler uses a (minimal) internal file viewer instead of using IntelliJ.
I would assume that the source code linking works fine when the profiling is initiated by the IntelliJ plugin, but in my case I don't know what run configuration to create in IntelliJ for standalone_jprofiler.bat.
So finally, my question is: Is it possible to see the code in IntelliJ when the profiling is initiated from the standalone JProfiler application?
One more piece of information: In this case I want the profiling to be activated immediately on startup.
I apologize in advance if this is too simple or silly. I've used JProfiler for just one day and googling didn't yield any relevant answers.
Is it possible to see the code in IntelliJ when the profiling is initiated from the standalone JProfiler application
No, that is not possible, you have to start the profiling session from IDEA to get source code navigation in the IDE.
Another possibility is to save a snapshot in JProfiler and open that snapshot in IDEA (via File->Open File). If the JProfiler plugin is installed in IDEA, the snapshot will then be opened with source code navigation in the IDE.
Related
Is there a way to force JetBrains IDE startup tasks to be debugged instead of being run?
Specifically, I want to configure WebStorm Settings | Tools | Startup Tasks to automatically perform a JavaScript debug task on IDE startup. The debug task only works by debugging it instead of running it, but it seems that WebStorm performs startup tasks by simply running it. I'm using WebStorm 2022.3.
I'm expecting the task to be performed on startup as if it is executed by clicking the Debug button on the top right of the IDE.
debug mode for startup tasks is not supported right now. However, we have a corresponding feature request on our bug tracker. We would appreciate it if you could upvote the issue to demonstrate additional interest and bring increased awareness to the issue.
IntelliJ IDEA Community Edition and Eclipse cannot be started after UFT and LR are installed on Windows 8.1. These applications can be started only as an administrator user. When I try to execute as a standard user I don't get any error message, seemly nothing happens, application is not started. Applications can be executed as administrator user, but don't working properly. It means Maven dependencies aren't resolved in IntelliJ IDEA and browser session cannot be started by Katalon Studio. I can't find any error logs.
When you install UFT/LR they update the JAVA OPTIONS
_JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1
\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
IBM_JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1
\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Just make a batch file for launching eclipse and intellij and remove these hooks and it should work. These hooks are usually added for automation and recording to work. Most of the time they are supposed to be transparent and not create an issue but with some apps they may cause partial issues.
This could be the same happening. The easiest way to test is to backup the values of these environment variables and then delete them and test if IDE works fine again
I am developing a Plugin for eclipse, and notice that when user changes file from out of IDE, e.g., do a git pull using shell, my editor does not pick up the change. I try to use IResourceChangeListener but realize it only monitors changes happening in the workspace.
I have seen eclipse TextEditor can monitor external file change, but failed to find how it implements this from code. My editor is not a text editor so I cannot extend from TextEditor to get this for free.
Can anyone give me a hint how to properly implement this feature for eclipse? Thanks!
According to Eclipse FAQ you need to monitor non Eclipse file changes in separate thread.
Fortunately Java have file change notification API which can be used to implement this.
We are using a small tool to automatically fetch updates for various projects from Git/SVN, recompile them and run tests locally with any local modifications that the developer might have developed, but not yet submitted to the global code repositories.
For some large projects, we see that the IntelliJ IDE only does refreshing/recompiling of code when the developer comes in and actually starts to work in the IDE, which always causes some time in the morning when the machines are busy recompiling, thus hindering the developers shortly after they came in.
I would like to do such a refresh/recompile already during the nightly update, so it is not wasting dev-time in the morning.
For Eclipse we are using https://github.com/moschinski/MondShell, a plugin which provides remote control functionality.
I tried to look for tools to automate things in IntelliJ, but could not find anything that would suit.
Are there any plugins or other means of remotely controlling IntelliJ to force it to recompile code and update source repositories?
As I could not find anything which could do this I started a small plugin which provides a small REST interface in order to control things in IntelliJ from scripts.
See https://github.com/centic9/IntelliJ-Automation-Plugin for the implementation details.
I've got a project using Maven 2 as the build tool. Now I am using Netbeans 6 as my IDE and really want to be able to use the profiler. Is there any way I can get this to work?
I thought this might be more complicated. It wasn't. To use the Netbeans profiler with your Maven 2 project you simply need to add a single pair of parameters when running your java app. Call up the project's Properties dialogue, select the "Run" tab and add something like the following to the jvm args:
-agentpath:"C:\Program Files\NetBeans 6.0\profiler2\lib\deployed\jdk15\windows\profilerinterface.dll=\"C:\\\"Program Files\"\\\"NetBeans 6.0\"\\profiler2\\lib\\"",5140
This meant that now when I ran my app (F6) execution would wait for me to attach the profiler. Cue real time graphy goodness. Sweet.