Is there a way to breakpoint whole project in intellij 15 - intellij-idea

Is there a way to somehow add breakpoints to all lines where some code is called outcluding method definitions since it takes a long time to debug it.
I got a messy code where I need to add some new functionalities but I just can't find them by following the code. It's like something is initialized on the start but I can't find where or what.

You can use the plugin "Simple Toogle All Method Breakpoint", with a right click on the project folder you can toggle Breakpoints at all methods of your project.

Related

Only the UWP project is running

It doesn't work if I try to add multiple pages to UNO SOLUTION. There are a lot of mistakes coming out. Only the UWP project is running. One of the mistakes.
LIST
First create a Page (Uno Platform UWP) then copy the body.
I also fixed the error in the same way.
To fix InitializeComponent error in Uno, you could refer to the following steps that are from the official document.
You could build your project once, close the solution and reopen it. It is also important to note that Uno uses a multi-project structure, for which each project has to be build individually for errors to disapear from the Error List window (notice the Project column values).
In order to clear the Error List window, build the whole solution completely once. Thereafter, build a specific project and prefer the use of the Output tool window (in the menu View -> Output), taking build messages by order of appearance.

How to use methods from one project in another project with Intellij?

I have set up a project, which has a method that I want to use in another project. I tried adding the other project (the one that I want to get the method from) into my dependencies. However all this seems to have done is make so the errors in the text editing space disappear, but when I run the code I still get the errors that I would have gotten without adding the dependency.
The error report was pretty basic and just said that it can't find my symbols.
Also, the method that I want does autocomplete so clearly it is being detected, but for some reason just when I compile it does it encounter an error.

PhpStorm does not highlight unimported classes

I'm using PhpStorm 2016.2 and recently I've noticed that it has stopped highlighting errors when a class is not imported from any namespace.
Let's say a namespaced class and inside I have a call like this:
$user = User::findOne(123);
In order for the above to work, I would need to do use common\models\User. But there is no error highlight and if I try to execute the code, it would of course fail. I'm confident that previously I got such errors highlighted. I'm not sure however when that happened - since update to 2016.2 or after doing something unintended.
You can follow the below steps to highlight the undefined/unimported class in phpstorm.
Go to preferences tab, choose inspections from Editor.
From the lists, choose php.
Under that, tick the Undefined class and click Apply and Ok.

IntelliJ: breakpoint everytime an object appears in breakpoint

I've noticed an unexpected behavior in an object used in this really complicate framework.
What I want is that the debugger stops (like with breakpoints) every time that the object appears in an instruction, without manually add breakpoints in all the instruction where it is used/appears.
Can I do something like this in IntelliJ?
Field Breakpoint is what you are looking for.
Read breakpoint type overview to get an overview of the different breakpoint types.
Furthermore, it is possible to put a condition on a breakpoint - read configure breakpoints.

Modifying window style by editing binary?

CyLog’s WildRename is a good program for performing batch-renames on files. The problem with it is that while the main window is resizable, it does not have the maximize box which makes it a little frustrating to size and use. Moreover, they have not made any updates in a long time, so the program is essentially discontinued.
I ran WildRename and used WinSpy++ to modify the style of its window to manually include the WS_MINIMIZEBOX style and bam!, it was now functioning as expected.
The question now is how to make this permanent.
My first instinct was to fire up ResHacker, but the problem is that the style that needs to be modified is that of the main window of a non-dialog application, so ResHacker has no way of doing this.
The next thing I tried was to open it in a hex-editor, to find the address(es) of the string corresponding to the titlebar. I then opened the file in W32Dasm and located the address of the code that references the address of the titlebar string. I did all this in an attempt to find the location of where the main dialog is created so that I can modify the style passed to CreateWindow(). Unfortunately, I cannot find a call to CreateWindow anywhere near the reference to the titelbar string and none of the calls to CreateWindowEx that I can find seem to be (obviously) the ones used to create the main window.
Is there an easy/automated way of modifying the style of the main window (assuming a non-dialog application)?
You could use a debugger like OllyDBG to dump the exe memory after the edit with WinSpy++, then use that exe or compare the files to see where the change is if you want to see what you've missed
There has to be a call to CreateWindow/Ex(), especially if it not a dialog from a resource. You just need to look harder. I would use IDA instead of WinDasm. It will decompile the assembly into more understandable code, and it has a built-in debugger. You can put a breakpoint on the title string and see in real-time which code actually touches it, and then follow it back to the accessing code.