Delphi - Как повторно включить уведомление об исключении отладчика?

По какому протоколу взаимодействует сервер приложений и nginx?

Какой бы протокол вы ни настроили.

Представьте, что у вас есть веб-приложение с этой архитектурой: сервер приложений Node (Koa) и веб-сервер Nginx впереди.

Ваше приложение Koa будет использовать HTTP. Поэтому HTTP используется между Nginx и вашим сервером приложений.

Запрос браузера: TCP / IP ???

HTTP всегда запускается по TCP. Браузер будет использовать любую версию HTTP, поддерживаемую им самим и сервером.

Вы настраиваете их, это http / 1 или 1.1 или 2?

Да, вы настраиваете их. Хотя Node.js не поддерживает HTTP / 1.0 должным образом. И HTTP / 2 обычно завершается вашим веб-сервером (в этом примере Nginx). Итак, типично , что HTTP / 1.1 используется между Nginx и вашим сервером приложений Node.js. Это, очевидно, может измениться, если вы измените его.

15
задан Peter Perháč 3 May 2009 в 18:17
поделиться

2 ответа

The following is extracted from this page on the Delphi Q&A by Rob Kennedy: (CC licensed) although it relates to Delphi 2005 it may help.

Why do I continue getting error messages even after I have written an exception handler?

In its default settings, the Delphi IDE notifies you whenever an exception occurs in your program, as in Figure 1. What’s important to realize is that at that point, none of your program’s exception-handling code has run yet. It’s all Delphi itself; its special status as a debugger allows it to get first notification of any exception in your program, even before your program knows about it.

enter image description here

Avoiding notification

If you do not want to be notified when an exception occurs, you have a few options.

  • You can use Delphi’s “advanced breakpoints” to disable exception handling around a region of code. To begin, set a breakpoint on the line of code where you want the IDE to ignore exceptions. Right-click on the breakpoint dot in the gutter and open the breakpoint-property dialog. In the advanced section are some check boxes. (See Figure 2.) Clear the “Break” box to prevent the debugger from interrupting your program at that line, and set the “Ignore subsequent exceptions” box.

    Afterward, set another breakpoint where you want the debugger to resume handling exceptions. Change its properties to handle subsequent exceptions.

enter image description here

  • You can tell the debugger to ignore certain kinds of exceptions. Figure 3 shows Delphi’s language-exception options. Add an exception class to the list, and all exceptions of that type and of any descendant types will pass through to your program without Delphi interfering.

enter image description here

  • In an option related to the previous one, you can tell the debugger not to interrupt on any exceptions. To do that, clear the “Notify on language exceptions” check box.

  • Finally, you can turn off integrated debugging altogether. Delphi will not notify you of exceptions, and it will also not stop at breakpoints or allow use of the “Pause” button. Turn off integrated debugging in the debugger options, as shown in Figure 5 for Delphi 2005.

enter image description here

10
ответ дан 1 December 2019 в 02:29
поделиться

I have found the ignored exception types in

(Main menu) Tools >> Options >> Debugger Options >> CodeGear Debuggers >> Language Exceptions >> and there is the list of exception types ignored.

It's somewhat more hidden than in D2005 but very close to what was said in the article referenced by Stuart Dunkeld.

18
ответ дан 1 December 2019 в 02:29
поделиться
Другие вопросы по тегам:

Похожие вопросы: