(trans_id)
| 589 | @blueprint.route('/direct/<int:trans_id>', methods=['GET'], endpoint='direct') |
| 590 | @pga_login_required |
| 591 | def direct_new(trans_id): |
| 592 | de_inst = DebuggerInstance(trans_id) |
| 593 | |
| 594 | # Return from the function if transaction id not found |
| 595 | if de_inst.debugger_data is None: |
| 596 | return make_json_response(data={'status': True}) |
| 597 | |
| 598 | # if indirect debugging pass value 0 to client and for direct debugging |
| 599 | # pass it to 1 |
| 600 | debug_type = 0 if de_inst.debugger_data['debug_type'] == 'indirect' else 1 |
| 601 | |
| 602 | """ |
| 603 | Animations and transitions are not automatically GPU accelerated and by |
| 604 | default use browser's slow rendering engine. |
| 605 | We need to set 'translate3d' value of '-webkit-transform' property in |
| 606 | order to use GPU. |
| 607 | After applying this property under linux, Webkit calculates wrong position |
| 608 | of the elements so panel contents are not visible. |
| 609 | To make it work, we need to explicitly set '-webkit-transform' property |
| 610 | to 'none' for .ajs-notifier, .ajs-message, .ajs-modal classes. |
| 611 | |
| 612 | This issue is only with linux runtime application and observed in Query |
| 613 | tool and debugger. When we open 'Open File' dialog then whole Query-tool |
| 614 | panel content is not visible though it contains HTML element in back end. |
| 615 | |
| 616 | The port number should have already been set by the runtime if we're |
| 617 | running in desktop mode. |
| 618 | """ |
| 619 | is_linux_platform = False |
| 620 | |
| 621 | from sys import platform as _platform |
| 622 | if "linux" in _platform: |
| 623 | is_linux_platform = True |
| 624 | |
| 625 | # We need client OS information to render correct Keyboard shortcuts |
| 626 | user_agent = UserAgent(request.headers.get('User-Agent')) |
| 627 | |
| 628 | function_arguments = '(' |
| 629 | if de_inst.function_data is not None and \ |
| 630 | 'args_name' in de_inst.function_data and \ |
| 631 | de_inst.function_data['args_name'] is not None and \ |
| 632 | de_inst.function_data['args_name'] != '': |
| 633 | args_name_list = de_inst.function_data['args_name'].split(",") |
| 634 | args_type_list = de_inst.function_data['args_type'].split(",") |
| 635 | index = 0 |
| 636 | for args_name in args_name_list: |
| 637 | function_arguments = '{}{} {}, '.format(function_arguments, |
| 638 | args_name, |
| 639 | args_type_list[index]) |
| 640 | index += 1 |
| 641 | # Remove extra comma and space from the arguments list |
| 642 | if len(args_name_list) > 0: |
| 643 | function_arguments = function_arguments[:-2] |
| 644 | |
| 645 | function_arguments += ')' |
| 646 | |
| 647 | layout = get_setting('Debugger/Layout') |
| 648 |
nothing calls this directly
no test coverage detected