Debug sql queries with Web_Debug tool in Symfony 1.4 - debugging

I'm using an web application which is developed using symfony 1.4.16 with mysql. I need to see what are the sql queries running on behind some actions in the application. So in the dev mode I have enabled the web_debug in the settings.yml file.
dev:
web_debug: true
Now I can see the web debug toolbar in the browser but I cannot find a place which shows running sql quires.
Should I change more settings in order to get sql queries. Please help me on this.

As of Sf 1.2. you can customize the webDebug panel so it is very likely that you have the DB info disabled. Have a look at this docs: http://symfony.com/legacy/doc/more-with-symfony/1_4/en/07-Extending-the-Web-Debug-Toolbar and you should be able to locate where you can re-enable the query panel.

Nothing else you should do .....
if you have a sql queries ran in your action , you should see it like at image

Edit: config/databases.yml
Add these lines:
dev:
propel:
class: sfPropelDatabase
param:
classname: DebugPDO
If you're using Doctrine, replace Propel with Doctrine.

Related

how to debug during API with laravel

I run my laravel app #localhost.
```php artisan serve --host=localhostIP```
On top I run an Andoid app with the same base URL.
Could anyone tell me how can I debug incoming API´s calls
like if BASEURL/users is called?
Furthermore, how can I log the happening events in the console
I am developing API's with laravel too, i do it this way:
composer require laravel/homestead to have it all in a vm 😉 see https://laravel.com/docs/master/homestead for more information, i use the "per project" installation
Download postman to have the best tool for sending querys to your api and to test your api quick -> https://www.getpostman.com (i use it free)
configure and run your homestead (it's not that complicated).
your homestead is fit with php and xdebug enabled
i am using phpStorm and have my vagrant setup as deployment target
"listen to debug" with phpstorm
to your GET requests, add a queryparam XDEBUG_SESSION_START=PHPSTORM
i can debug my api now 😉
i also wrote https://logcrawler.de to receive the log informations of all my api's and all my server 🤩
I hope, i could help you a little bit
This is my way, but I think it's not good!
Create router api in config/web, Eg:
router/api: Route::post('/check_api', [CheckController::class, 'testFunc'])->name('api.check_api');
web/api: Route::post('test/check_api', [CheckController::class, 'testFunc'])->name('test.check_api');
Create a post by form or ajax in one resource/view like index
Go to page, and debug with phpstorm
You can use logging feature of Laravel. Apply Logs on entry point of application to test whether API url is hitting or not.
use postman
https://www.getpostman.com/downloads/
it's an excellent thing very much usefull

Oracle Forms Global Exit in JNLP

I've the following problem:
I have an Oracle forms Application where the User can call multiple Forms.
I also have an Menu with an Logout button, that should close all open Forms.
When this button is pressed I set :GLOBAL.LOGOFF to 'TRUE'. And in WHEN_WINDOW_ACTIVATED I have placed the following code.
DEFAULT_VALUE('FALSE','GLOBAL.LOGOFF');
IF (:GLOBAL.LOGOFF = 'TRUE') THEN
COMMIT;
DO_KEY('EXIT_FORM');
END IF;
This whole thing also works when the Oracle Forms Application is called from a browser.
But when I call it via JNLP it crashes the application. I get the following errors:
FRM-40735: WHEN-FORM-NAVIGATE
FRM-40735: WHEN-NEW-ITEM-INSTANCE
FRM-40735: WHEN-WINDOW-DEACTIVATED
All with:
ORA-06508
I don't understand how the Forms Application is reacting differently depending on if it is executed via JNLP or from a Browser.
Although I question why you are doing logoff handling in a WHEN_WINDOW_ACTIVATED trigger, it is possible what you are seeing is related to a known issue. Refer to these Oracle bugs that all map together. You may need to work with Oracle Support as some of the bugs and/or their content may not be visible to you. 9764631, 22724515, 26996652
Also, if you are not already using 12.2.1.3, you will need to update your version in order to get the fix I mentioned.
Helpful resource:
https://community.oracle.com/community/development_tools/forms

How to connect to MySql in Wakanda 2?

In Wakanda 1.1 I used "model.mergeSQLCatalog()" to see the MySql db that I was wanting to work with, as per the documentation. Trying to do the same in Wakanda 2, it tells me that that model.mergeSQLCatalog() is not a function. I get the feeling that I am missing something really obvious, but for the life of me I can't see what it is. Can someone enlighten me please? (I am working with a trial license)
model.mergeSQLCatalog() is deprecated since v2.0.0.
To keep working, add a SQL model:
Right click on models folder > new > model
Select MySQL
Set your SQL server config
A new model folder is created where you can put your old model.js file.
Here some official doc that can help you : https://wakanda.github.io/doc/#/guide?section=main-data-external

Kendo spring demo project missing database

I'm trying to run Kendo spring demo application, most of the demos works but whenever I run remote binding examples I'm getting
[SQLITE_ERROR] SQL error or missing database (no such table:
Employees)]
It seems like it couldn't find the database, where can I find the database or how can I fix this?
The database should be available under the following folder:
spring-demos\src\main\webapp\WEB-INF\sample.db

Debugging with laravel Fluent Query Builder

Im building a project in laravel 3 and wondering how you can debug Fluent Query Builder ie. get the error message or the produced SQL in order to see what im doing wrong
If you enable the profiler in Laravel 3 it will show you the executed queries once the page has loaded. You can enable it by setting the profiler option to true in application/config/application.php

Resources